From f86ab124588a33acc1790ea1d14dd8e400330c3e Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Fri, 20 Mar 2020 18:40:11 +0200 Subject: 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 --- jest.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'jest.config.js') 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' + } + } }; -- cgit v1.2.3