1
0
mirror of https://github.com/dzeiocom/libs.git synced 2025-04-22 10:52:11 +00:00

Simplified Jest Configuration

Signed-off-by: Florian Bouillon <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2020-12-08 12:52:02 +01:00
parent fcc3163c7c
commit 6e4c2a6362
5 changed files with 7 additions and 48 deletions

5
jest.base.config.json Normal file
View File

@ -0,0 +1,5 @@
{
"transform": {
"^.+\\.tsx?$": "ts-jest"
}
}

View File

@ -1,18 +1 @@
module.exports = {
globals: {
'ts-jest': {
tsConfig: 'tsconfig.test.json'
},
"transform": {
".(ts|tsx)": " ../../node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"testResultsProcessor": "../../node_modules/ts-jest/coverageprocessor.js",
"collectCoverageFrom": ["src/URLManager.ts"],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
},
}
module.exports = require('../../jest.base.config.json')

View File

@ -1,6 +0,0 @@
{
"compilerOptions": {
"target": "es5",
"esModuleInterop": true
}
}

View File

@ -1,18 +1 @@
module.exports = {
globals: {
'ts-jest': {
tsConfig: 'tsconfig.test.json'
},
"transform": {
".(ts|tsx)": " ../../node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"testResultsProcessor": "../../node_modules/ts-jest/coverageprocessor.js",
"collectCoverageFrom": ["src/URLManager.ts"],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
},
}
module.exports = require('../../jest.base.config.json')

View File

@ -1,6 +0,0 @@
{
"compilerOptions": {
"target": "es5",
"esModuleInterop": true
}
}