gitbeaker/jest.config.js
Pavel Birukov 97d1886239 Improve jest config
* Specify folder for tests, otherwise it runs tests from dist/ if any
* pass --runInBand to speed up tests execution (jest compiles project as
many time as many threads it uses). MBP 2017, cold cache:

--runInBand
	11.31s user 1.91s system 83% cpu 15.914 total

8 workers
	76.28s user 8.49s system 309% cpu 27.401 total
2018-10-12 18:57:49 +03:00

22 lines
402 B
JavaScript

module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testRegex: 'test/tests/.*\\.ts$',
testMatch: null,
testURL: 'http://localhost/',
coverageDirectory: './coverage/',
collectCoverage: true,
setupTestFrameworkScriptFile: 'jest-extended',
globals: {
'ts-jest': {
diagnostics: {
ignoreCodes: [2322, 2445, 7006, 7031, 2339, 7016, 7023, 7017, 2345, 6133],
},
},
},
};