CommunitySolidServer/jest.config.js
2022-11-09 09:10:00 +01:00

25 lines
645 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: false,
// See https://github.com/matthieubosquet/ts-dpop/issues/13
moduleNameMapper: {
'^jose/(.*)$': '<rootDir>/node_modules/jose/dist/node/cjs/$1',
},
// Slower machines had problems calling the WebSocket integration callbacks on time
testTimeout: 60000,
};