Adapted for TS

This commit is contained in:
Laegel
2020-01-23 22:49:02 +01:00
parent f58d23e0a9
commit f68d0a688a
2 changed files with 7 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ module.exports = {
collectCoverage: true,
coverageDirectory: '<rootDir>/test/jest/coverage',
collectCoverageFrom: [
'<rootDir>/src/**/*.js'
'<rootDir>/src/**/*.ts'
],
coverageReporters: [
'json-summary',
@@ -28,9 +28,10 @@ module.exports = {
}
},
testMatch: [
'<rootDir>/test/__tests__/**/*.spec.js'
'<rootDir>/test/__tests__/**/*.spec.ts'
],
moduleFileExtensions: [
'ts',
'js',
'json'
],
@@ -39,7 +40,7 @@ module.exports = {
'^src/(.*)$': '<rootDir>/src/$1',
},
transform: {
'.*\\.js$': 'babel-jest',
'.*\\.ts$': 'ts-jest',
},
transformIgnorePatterns: [

View File

@@ -37,6 +37,8 @@
"@babel/cli": "^7.6.4",
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"@types/jest": "^24.9.0",
"@types/ramda": "^0.26.39",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"babel-plugin-transform-relative-paths": "^0.1.0",
@@ -53,6 +55,7 @@
"lint-staged": "^9.4.2",
"postinstall-postinstall": "^2.0.0",
"promise": "^8.0.2",
"ts-jest": "^24.3.0",
"ts-loader": "^6.2.1",
"typescript": "^3.7.5",
"webpack": "^4.41.5",