gitbeaker/jest.config.js
Justin Dalrymple ca9b66f096 chore: 🤖 Updating jest configuration
Included types for jest-extended and exceptions for es module tests
2020-02-01 10:25:04 +01:00

27 lines
472 B
JavaScript

module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testRegex: 'test\\/.*\\.ts$',
testMatch: null,
testURL: 'http://localhost/',
testTimeout: 15000,
coverageDirectory: 'coverage',
collectCoverage: true,
setupFilesAfterEnv: ['jest-extended'],
moduleNameMapper: {
'^ky$': require.resolve('ky').replace('index.js', 'umd.js'),
},
globals: {
'ts-jest': {
diagnostics: {
ignoreCodes: [2339],
},
},
},
};