Moved TS_NODE_PROJECT configuration to mocha setup script
This commit is contained in:
@@ -60,7 +60,7 @@ In `package.json`, add a new `test-integration` script and add the new integrati
|
||||
|
||||
```json
|
||||
"scripts": {
|
||||
"test": "export TS_NODE_PROJECT='./tsconfig.test.json' && npm run test-unit && npm run test-integration",
|
||||
"test": "npm run test-unit && npm run test-integration",
|
||||
"test-integration": "npm run build && mocha test/integration/**/*.ts",
|
||||
}
|
||||
```
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
"push-main": "rollup -c --environment DEST:main",
|
||||
"push-pserver": "rollup -c --environment DEST:pserver",
|
||||
"push-sim": "rollup -c --environment DEST:sim",
|
||||
"test": "export TS_NODE_PROJECT='./tsconfig.test.json' && npm run test-unit",
|
||||
"test": "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",
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
--require test/setup-node.js
|
||||
--require test/setup-mocha.js
|
||||
--require ts-node/register
|
||||
--require tsconfig-paths/register
|
||||
--ui bdd
|
||||
|
||||
@@ -4,3 +4,6 @@ global.mocha = require('mocha');
|
||||
global.chai = require('chai');
|
||||
global.sinon = require('sinon');
|
||||
global.chai.use(require('sinon-chai'));
|
||||
|
||||
// Override ts-node compiler options
|
||||
process.env.TS_NODE_PROJECT = 'tsconfig.test.json'
|
||||
Reference in New Issue
Block a user