Moved TS_NODE override to 'test' script
This commit is contained in:
@@ -60,8 +60,8 @@ In `package.json`, add a new `test-integration` script and add the new integrati
|
||||
|
||||
```json
|
||||
"scripts": {
|
||||
"test": "npm run test-unit && npm run test-integration",
|
||||
"test-integration": "npm run build && TS_NODE_PROJECT='./tsconfig.test.json' mocha ./test/integration/**/*.ts",
|
||||
"test": "export TS_NODE_PROJECT='./tsconfig.test.json' && npm run test-unit && npm run test-integration",
|
||||
"test-integration": "npm run build && mocha test/integration/**/*.ts",
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
"push-main": "rollup -c --environment DEST:main",
|
||||
"push-pserver": "rollup -c --environment DEST:pserver",
|
||||
"push-sim": "rollup -c --environment DEST:sim",
|
||||
"test": "npm run test-unit",
|
||||
"test-unit": "TS_NODE_PROJECT='./tsconfig.test.json' mocha test/unit/**/*.ts",
|
||||
"test": "export TS_NODE_PROJECT='./tsconfig.test.json' && npm run test-unit",
|
||||
"test-unit": "mocha test/unit/**/*.ts",
|
||||
"test-integration": "echo 'See docs/in-depth/testing.md for instructions on enabling integration tests'",
|
||||
"watch-main": "rollup -cw --environment DEST:main",
|
||||
"watch-pserver": "rollup -cw --environment DEST:pserver",
|
||||
|
||||
Reference in New Issue
Block a user