Skip to content

Commit 7efffc7

Browse files
committed
Added cross-env to allow testing in Windows
1 parent b87a87e commit 7efffc7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
"pretty": "prettier --loglevel warn --write lib/*.js tests/*.js",
2828
"pretty-lint": "prettier --check lib/*.js tests/*.js",
2929
"pretest": "npm run pretty-lint",
30-
"test": "NODE_OPTIONS=--openssl-legacy-provider jest --runInBand --env node",
31-
"test-debug": "NODE_OPTIONS=--openssl-legacy-provider node --inspect-brk=0.0.0.0 node_modules/jest/bin/jest --runInBand --env node",
30+
"test": "cross-env NODE_OPTIONS=--openssl-legacy-provider jest --runInBand --env node",
31+
"test-debug": "cross-env NODE_OPTIONS=--openssl-legacy-provider node --inspect-brk=0.0.0.0 node_modules/jest/bin/jest --runInBand --env node",
3232
"posttest": "tsc",
3333
"test-watch": "jest --runInBand --env node --watchAll",
34-
"ci": "NODE_OPTIONS=--openssl-legacy-provider npm run pretest && jest --runInBand --coverage --env node && npm run posttest"
34+
"ci": "cross-env NODE_OPTIONS=--openssl-legacy-provider npm run pretest && jest --runInBand --coverage --env node && npm run posttest"
3535
},
3636
"jest": {
3737
"setupFilesAfterEnv": [
@@ -46,6 +46,7 @@
4646
"@typescript-eslint/parser": "^2.34.0",
4747
"commitizen": "^4.3.0",
4848
"compression-webpack-plugin": "^6.1.1",
49+
"cross-env": "^7.0.3",
4950
"css-loader": "^5.2.7",
5051
"cz-conventional-changelog": "3.3.0",
5152
"eslint": "^6.8.0",

0 commit comments

Comments
 (0)