gitbeaker/jest.config.base.mjs
Justin Dalrymple f277995994
CI/CD Re-organization and Optimization (#3515)
- Updating CI script to use latest shutdown logic
- Removed unneeded tests
- Split browser tests into ones that need a Gitlab instance those that down
- Removing the need to run the full e2e test unless its a release branch
- Moved the most tested release tests (the exports) into a integration test since it doesnt require a full Gitlab instance for testing
2024-01-28 21:43:51 -05:00

19 lines
500 B
JavaScript

export default {
testEnvironment: 'node',
testRegex: 'test\\/.*\\.ts$',
coverageDirectory: 'coverage',
collectCoverage: true,
coverageReporters: ['lcov', 'text', 'text-summary', 'cobertura'],
reporters: [
'default',
['jest-junit', { outputDirectory: 'reports', outputName: 'nodejs_junit.xml' }],
],
moduleNameMapper: {
'^@gitbeaker/(.*)$': '<rootDir>/../$1/src',
},
transform: {
'^.+\\.(t|j)sx?$': '@swc/jest',
},
setupFilesAfterEnv: ['jest-extended/all'],
};