diff --git a/jest.config.js b/jest.config.js index e28807f..edfc660 100755 --- a/jest.config.js +++ b/jest.config.js @@ -13,7 +13,7 @@ module.exports = { collectCoverage: true, coverageDirectory: '/test/jest/coverage', collectCoverageFrom: [ - '/src/**/*.js' + '/src/**/*.ts' ], coverageReporters: [ 'json-summary', @@ -28,9 +28,10 @@ module.exports = { } }, testMatch: [ - '/test/__tests__/**/*.spec.js' + '/test/__tests__/**/*.spec.ts' ], moduleFileExtensions: [ + 'ts', 'js', 'json' ], @@ -39,7 +40,7 @@ module.exports = { '^src/(.*)$': '/src/$1', }, transform: { - '.*\\.js$': 'babel-jest', + '.*\\.ts$': 'ts-jest', }, transformIgnorePatterns: [ diff --git a/package.json b/package.json index a3db50b..32eb63b 100644 --- a/package.json +++ b/package.json @@ -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",