Skip to content
Snippets Groups Projects
jest.config.js 521 B
module.exports = {
  roots: ['<rootDir>/src/'],
  preset: 'ts-jest',
  testEnvironment: 'node',
  transform: {
    '^.+\\.tsx?$': 'ts-jest'
  },
  moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
  collectCoverage: true,
  coverageReporters: ['json', 'lcov', 'text', 'clover', 'html'],
  coverageDirectory: 'docs/coverage',
  reporters: [
    'default',
    ['jest-html-reporters', {
      publicPath: './docs',
      filename: 'test-report.html',
      pageTitle: 'Metrics :: Test Results'
    }]
  ]
}