From cde6fe79c860787930b5dd2fd5efeff7faa31da4 Mon Sep 17 00:00:00 2001 From: Justin Date: Sat, 25 May 2019 17:14:51 -0400 Subject: [PATCH] refactor(config): Replacing jest.config.js with jest.config.json --- jest.config.js | 21 --------------------- jest.config.json | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 jest.config.js create mode 100644 jest.config.json diff --git a/jest.config.js b/jest.config.js deleted file mode 100644 index 7ff97b8b..00000000 --- a/jest.config.js +++ /dev/null @@ -1,21 +0,0 @@ -module.exports = { - preset: 'ts-jest', - - testEnvironment: 'node', - testRegex: 'test/tests/.*\\.ts$', - testMatch: null, - testURL: 'http://localhost/', - - coverageDirectory: './coverage/', - collectCoverage: true, - - setupTestFrameworkScriptFile: 'jest-extended', - - globals: { - 'ts-jest': { - diagnostics: { - ignoreCodes: [2322, 2445, 7006, 7031, 2339, 7016, 7023, 7017, 2345, 6133], - }, - }, - }, -}; diff --git a/jest.config.json b/jest.config.json new file mode 100644 index 00000000..3914366d --- /dev/null +++ b/jest.config.json @@ -0,0 +1,21 @@ +{ + "preset": "ts-jest", + + "testEnvironment": "node", + "testRegex": "test\\/.*\\.ts$", + "testMatch": null, + "testURL": "http://localhost/", + + "coverageDirectory": "./coverage/", + "collectCoverage": true, + + "setupFilesAfterEnv": ["jest-extended"], + + "globals": { + "ts-jest": { + "diagnostics": { + "ignoreCodes": [2322, 2445, 7006, 7031, 2339, 7016, 7023, 7017, 2345, 6133] + } + } + } +}