Using ts-node and tsconfig-paths to run mocha over Typescript test files

This commit is contained in:
brisberg
2020-08-07 14:27:57 -07:00
parent 8ca88dbf08
commit d776105757
7 changed files with 10 additions and 91 deletions

View File

@@ -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",
}
```