Skip to content

Commit cd0b968

Browse files
committed
fixed unit tests
1 parent 03c8140 commit cd0b968

File tree

2 files changed

+117
-97
lines changed

2 files changed

+117
-97
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"prettier:run": "prettier 'styles/*.less' '*.md' '{,.}*.yml' '.circleci/*.yml'",
4545
"test": "npm-run-all build -lp test:**",
4646
"test:lint": "tslint -c tslint.yml -p tsconfig.json -e test",
47-
"test:unit": "mocha",
47+
"test:unit": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha",
4848
"test:format": "yarn run prettier:run --list-different",
4949
"fix": "npm-run-all -lp fix:**",
5050
"fix:format": "yarn run prettier:run --write",
@@ -79,6 +79,7 @@
7979
"@types/uuid": "^9.0.0",
8080
"@types/webpack": "^5.28.0",
8181
"chai": "^4.3.6",
82+
"cross-env": "7.0.3",
8283
"css-loader": "^6.7.3",
8384
"html-loader": "^4.2.0",
8485
"html-webpack-plugin": "^5.5.0",

0 commit comments

Comments
 (0)