mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
* 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
22 lines
402 B
JavaScript
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],
|
|
},
|
|
},
|
|
},
|
|
};
|