Skip to content

Commit

Permalink
feat: 🔧 add karma process mock
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed Sep 6, 2024
1 parent 531101a commit 6afd20a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/cosmwasm-stargate/global-variables.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const process = {
env: {
TENDERMINT_ENABLED: 1,
}
};
10 changes: 9 additions & 1 deletion packages/cosmwasm-stargate/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = function (config) {
frameworks: ["jasmine"],

// list of files / patterns to load in the browser
files: ["dist/web/tests.js"],
files: ["./global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down Expand Up @@ -50,5 +50,13 @@ module.exports = function (config) {

// Keep brower open for debugging. This is overridden by yarn scripts
singleRun: false,

webpack: {
plugins: [
new webpack.ProvidePlugin({
process: 'process/browser'
})
]
}
});
};

0 comments on commit 6afd20a

Please sign in to comment.