mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
34 lines
709 B
JavaScript
34 lines
709 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: [
|
|
'/dist/',
|
|
'/node_modules/',
|
|
'/test/',
|
|
],
|
|
coverageThreshold: {
|
|
'./src': {
|
|
branches: 100,
|
|
functions: 100,
|
|
lines: 100,
|
|
statements: 100,
|
|
},
|
|
},
|
|
// Slower machines had problems calling the WebSocket integration callbacks on time
|
|
testTimeout: 10000,
|
|
};
|