Skip to content

Commit

Permalink
feat: 🔧 add jasmine global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideSegullo committed Sep 6, 2024
1 parent 8597e3c commit 5336b53
Show file tree
Hide file tree
Showing 15 changed files with 25 additions and 30 deletions.
13 changes: 13 additions & 0 deletions jasmine-global-variables.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const process = {
...process,
env: {
...process.env,
HTTPSERVER_ENABLED: 1,
SIMAPP44_ENABLED: 1,
SLOW_SIMAPP44_ENABLED: 1,
TENDERMINT_ENABLED: 1,
SOCKETSERVER_ENABLED: 1,
SKIP_BUILD: 1,
WASMD_ENABLED: 1
}
};
2 changes: 1 addition & 1 deletion packages/amino/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: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down
5 changes: 0 additions & 5 deletions packages/cosmwasm-stargate/global-variables.js

This file was deleted.

10 changes: 1 addition & 9 deletions 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: ["./global-variables.js", "dist/web/tests.js"],
files: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down Expand Up @@ -50,13 +50,5 @@ 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'
})
]
}
});
};
2 changes: 1 addition & 1 deletion packages/crypto/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: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down
2 changes: 1 addition & 1 deletion packages/encoding/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: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down
2 changes: 1 addition & 1 deletion packages/faucet-client/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: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down
2 changes: 1 addition & 1 deletion packages/math/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: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down
2 changes: 1 addition & 1 deletion packages/proto-signing/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: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down
2 changes: 1 addition & 1 deletion packages/socket/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: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down
5 changes: 0 additions & 5 deletions packages/stargate/global-variables.js

This file was deleted.

2 changes: 1 addition & 1 deletion packages/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: ["./global-variables.js", "dist/web/tests.js"],
files: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down
2 changes: 1 addition & 1 deletion packages/stream/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: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down
2 changes: 1 addition & 1 deletion packages/tendermint-rpc/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: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/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: ["../../jasmine-global-variables.js", "dist/web/tests.js"],

client: {
jasmine: {
Expand Down

0 comments on commit 5336b53

Please sign in to comment.