Skip to content

Commit f322ac8

Browse files
committed
using cross compatibility for test script
1 parent 0ed7e97 commit f322ac8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"scripts": {
88
"lint": "npx standard",
99
"format": "npx standard --fix",
10-
"test": "PORT=3000 NODE_ENV=testing npx nyc --check-coverage --lines 95 node ./node_modules/mocha/bin/mocha specs/*.test.js",
10+
"test": "cross-env PORT=3000 NODE_ENV=testing npx nyc --check-coverage --lines 95 node ./node_modules/mocha/bin/mocha specs/*.test.js",
1111
"postinstall": "node ./libs/tasks/postinstall.js"
1212
},
1313
"repository": {
@@ -45,6 +45,7 @@
4545
"benchmark": "^2.1.4",
4646
"body-parser": "^1.19.0",
4747
"chai": "^4.3.4",
48+
"cross-env": "^7.0.3",
4849
"express": "^4.17.1",
4950
"express-jwt": "^6.1.0",
5051
"fastify": "^2.15.3",

0 commit comments

Comments
 (0)