CommunitySolidServer/jest.config.js
Joachim Van Herwegen e8f0304b40 chore: Increase jest timeout
Tests were failing on my personal machine due to this.
2020-11-30 11:38:17 +01:00

32 lines
714 B
JavaScript

module.exports = {
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.json"
}
},
"transform": {
"^.+\\.ts$": "ts-jest"
},
"testRegex": "/test/(unit|integration)/.*\\.test\\.ts$",
"moduleFileExtensions": [
"ts",
"js"
],
"testEnvironment": "node",
"setupFilesAfterEnv": ["jest-rdf", "<rootDir>/test/util/SetupTests.ts"],
"collectCoverage": true,
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"./src": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"testTimeout": 10000, // Slower machines had problems calling the WebSocket integration callbacks on time
};