From 8597e3ccd5d1f991ccb1bb314751f3cfbd2f97b0 Mon Sep 17 00:00:00 2001 From: Davide Segullo Date: Fri, 6 Sep 2024 18:11:13 +0200 Subject: [PATCH] feat: :wrench: add karma stargaze process mock --- packages/stargate/global-variables.js | 5 +++++ packages/stargate/karma.conf.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packages/stargate/global-variables.js diff --git a/packages/stargate/global-variables.js b/packages/stargate/global-variables.js new file mode 100644 index 0000000000..fdf77db086 --- /dev/null +++ b/packages/stargate/global-variables.js @@ -0,0 +1,5 @@ +const process = { + env: { + TENDERMINT_ENABLED: 1, + } +}; \ No newline at end of file diff --git a/packages/stargate/karma.conf.js b/packages/stargate/karma.conf.js index 31c44e8edf..c8e74820fb 100644 --- a/packages/stargate/karma.conf.js +++ b/packages/stargate/karma.conf.js @@ -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: {