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:
parent
fcc3163c7c
commit
6e4c2a6362
5
jest.base.config.json
Normal file
5
jest.base.config.json
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"transform": {
|
||||
"^.+\\.tsx?$": "ts-jest"
|
||||
}
|
||||
}
|
@ -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')
|
||||
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
@ -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')
|
||||
|
@ -1,6 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es5",
|
||||
"esModuleInterop": true
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user