From e456afa6c4c74d86831fd5ab83d26bdb8841fb1c Mon Sep 17 00:00:00 2001 From: hgw Date: Fri, 2 Feb 2024 03:22:59 +0000 Subject: [PATCH] Webpack doesnt switch on NODE_ENV=test --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7b93a295..fa9121e9 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,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": [