jdalrymple/gitbeaker

View on GitHub
jest.config.base.mjs

Summary

Maintainability
Test Coverage
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'],
};