refactor(config): Replacing jest.config.js with jest.config.json

This commit is contained in:
Justin 2019-05-25 17:14:51 -04:00
parent cdbcf1f42a
commit cde6fe79c8
2 changed files with 21 additions and 21 deletions

View File

@ -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],
},
},
},
};

21
jest.config.json Normal file
View File

@ -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]
}
}
}
}