CommunitySolidServer/jest.config.js
Joachim Van Herwegen b949b6cf5e Initial configuration
2020-05-15 11:07:10 +02:00

25 lines
501 B
JavaScript

module.exports = {
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.json"
}
},
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testRegex": "/test/.*\\.ts$",
"moduleFileExtensions": [
"ts",
"js"
],
"testEnvironment": "node",
"collectCoverage": true,
// either we don't build the test files (but then eslint needs a separate tsconfig) or we do this
"testPathIgnorePatterns": [
".*\\.d\\.ts"
],
"coveragePathIgnorePatterns": [
"/node_modules/"
]
};