Skip to content

Commit

Permalink
#14 Add --env=node to test script to fix broken tests again
Browse files Browse the repository at this point in the history
  • Loading branch information
p-a-s-c-a-l committed Jul 23, 2020
1 parent 0647363 commit 4dfbf88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
"testEnvironment": "node"
}
'testEnvironment': 'node'
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"npm": ">=5"
},
"scripts": {
"test": "cross-env CI=1 react-scripts test --env=jsdom",
"test": "cross-env CI=1 react-scripts test --env=jsdom --env=node",
"test:watch": "react-scripts test --env=jsdom",
"build": "rollup -c",
"start": "rollup -c -w",
Expand Down Expand Up @@ -80,4 +80,4 @@
"query-string": "^6.13.1",
"wicket": "^1.3.6"
}
}
}
2 changes: 1 addition & 1 deletion src/__tests__/CSISHelpers.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* ***************************************************
*/

import axios from 'axios';
import axios from 'axios';
import log from 'loglevel';

// Using ie9 polyfills as the "kitchen sink" of polyfills
Expand Down
10 changes: 2 additions & 8 deletions src/__tests__/EMIKATHelpers.test.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
/*
* ***************************************************
*
* cismet GmbH, Saarbruecken, Germany
*
* ... and it just works.
*
* ***************************************************
/**
* @jest-environment node
*/

import axios from 'axios';
Expand Down

0 comments on commit 4dfbf88

Please sign in to comment.