Jerko Steiner 1d8c23e25a
Some checks failed
continuous-integration/drone/push Build is failing
Fix jest test in CI
Jest runs out of memory when run in Docker, possibly because of a memory
leak in ts-jest.

The tests will now run after the build, on the built *.js files. As a
consequence, the jest tests will run faster because ts-jest will no
longer be invoked in ci.

Check the package.json test:ci script for more info.

https://github.com/facebook/jest/issues/7874
https://github.com/facebook/jest/issues/9081
2020-01-10 10:35:59 +01:00

24 lines
397 B
JavaScript

module.exports = {
globals: {
'ts-jest': {
compiler: 'ttypescript',
},
},
testEnvironment: 'node',
roots: [
'<rootDir>/src',
],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|\\.(test|spec))\\.tsx?$',
moduleFileExtensions: [
'ts',
'tsx',
'js',
'jsx',
],
setupFiles: ['<rootDir>/jest.setup.js'],
verbose: false,
}