test:mocha: webpack doesn't switch on NODE_ENV=test

So we might as well not complicate the cli for no reason
This commit is contained in:
Reto Brunner 2024-01-27 14:10:33 +01:00
parent a12ddc75d8
commit 29c5323bfd

View file

@ -26,7 +26,7 @@
"lint": "run-p --aggregate-output --continue-on-error lint:*",
"start": "node index start",
"test": "run-p --aggregate-output --continue-on-error lint:* test:*",
"test:mocha": "cross-env NODE_ENV=test webpack --mode=development && cross-env NODE_ENV=test TS_NODE_PROJECT='./test/tsconfig.json' mocha --require ts-node/register --colors --config=test/.mocharc.yml",
"test:mocha": "webpack --mode=development && cross-env NODE_ENV=test TS_NODE_PROJECT='./test/tsconfig.json' mocha --require ts-node/register --colors --config=test/.mocharc.yml",
"watch": "webpack --watch"
},
"keywords": [