diff options
| author | Uri Shaked | 2020-03-20 18:40:11 +0200 |
|---|---|---|
| committer | Uri Shaked | 2020-03-20 18:40:11 +0200 |
| commit | f86ab124588a33acc1790ea1d14dd8e400330c3e (patch) | |
| tree | 3b0fbb1425ff8c49bf017403180b7963d1ab478d | |
| parent | style(cpu): relocate some stray comments (diff) | |
| download | avr8js-f86ab124588a33acc1790ea1d14dd8e400330c3e.tar.gz avr8js-f86ab124588a33acc1790ea1d14dd8e400330c3e.tar.bz2 avr8js-f86ab124588a33acc1790ea1d14dd8e400330c3e.zip | |
test: use tsconfig.spec.json when running jest
Also configure tests to fix "Emit skipped" errors in demo project tests,
and surpress a warning about esModuleInterop
Diffstat (limited to '')
| -rw-r--r-- | jest.config.js | 7 | ||||
| -rw-r--r-- | tsconfig.spec.json | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/jest.config.js b/jest.config.js index eef6b07..b7a3dcd 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,9 @@ module.exports = { preset: 'ts-jest', - testEnvironment: 'node' + testEnvironment: 'node', + globals: { + 'ts-jest': { + tsConfig: 'tsconfig.spec.json' + } + } }; diff --git a/tsconfig.spec.json b/tsconfig.spec.json index a8d4317..8de4424 100644 --- a/tsconfig.spec.json +++ b/tsconfig.spec.json @@ -1,4 +1,8 @@ { + "compilerOptions": { + "esModuleInterop": true, + "noEmitOnError": false + }, "extends": "./tsconfig.json", "exclude": [] } |
