From a354ea10969c7601c8bcc7524fb731777dc771f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20C=C4=85derek?= Date: Thu, 17 Oct 2019 20:19:52 +0200 Subject: [PATCH] Disabled strict checks for test files --- jest.config.js | 5 +++++ tsconfig.test.json | 12 ++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tsconfig.test.json diff --git a/jest.config.js b/jest.config.js index 87c30aa..2a86412 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,9 @@ module.exports = { + globals: { + 'ts-jest': { + tsConfig: 'tsconfig.test.json', + }, + }, preset: 'ts-jest', testEnvironment: 'node', } diff --git a/tsconfig.test.json b/tsconfig.test.json new file mode 100644 index 0000000..4d6c804 --- /dev/null +++ b/tsconfig.test.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "target": "es2015", + "module": "commonjs", + "removeComments": true, + "declaration": true, + "outDir": "./lib", + "preserveConstEnums": true + }, + "include": ["src"], + "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.temp.ts"] +}