Skip to content

Commit 2ad4df7

Browse files
committed
Ensure test scripts run on Windows
1 parent b08305f commit 2ad4df7

File tree

2 files changed

+55
-2
lines changed

2 files changed

+55
-2
lines changed

package-lock.json

Lines changed: 52 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"build:src": "rm -rf lib && tsc -b --force",
2020
"build:release": "oclif-dev manifest && webpack && ts-node ./pack.ts",
2121
"prepack": "npm run build:src && oclif-dev manifest",
22-
"test": "TS_NODE_FILES=true mocha --exit -r ts-node/register 'test/**/*.spec.ts'",
23-
"test:release": "TEST_BUILT_TARBALL=1 npm run test"
22+
"test": "cross-env TS_NODE_FILES=true mocha --exit -r ts-node/register 'test/**/*.spec.ts'",
23+
"test:release": "cross-env TEST_BUILT_TARBALL=1 npm run test"
2424
},
2525
"repository": "httptoolkit/httptoolkit-server",
2626
"homepage": "https://github.com/httptoolkit/httptoolkit-server",
@@ -83,6 +83,7 @@
8383
"bent": "^1.5.13",
8484
"chai": "^4.2.0",
8585
"copy-webpack-plugin": "^5.0.4",
86+
"cross-env": "^7.0.3",
8687
"fs-extra": "^8.1.0",
8788
"got": "^9.6.0",
8889
"graphql.js": "^0.6.1",

0 commit comments

Comments
 (0)