Using ts-node and tsconfig-paths to run mocha over Typescript test files
This commit is contained in:
@@ -61,7 +61,7 @@ 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 && rollup -c rollup.test-integration-config.js && mocha dist/test-integration.bundle.js",
|
||||
"test-integration": "npm run build && TS_NODE_PROJECT='./tsconfig.test.json' mocha ./test/integration/**/*.ts",
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user