• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1'use strict';
2
3// @ts-check
4/** @type {import('@jest/types').Config.InitialOptions} */
5module.exports = {
6  globals: {
7    'ts-jest': {
8      isolatedModules: true,
9    },
10  },
11  testEnvironment: 'node',
12  transform: {
13    [/^.+\.tsx?$/.source]: 'ts-jest',
14  },
15  testRegex: [/.\/tests\/.+\.test\.ts$/.source],
16  collectCoverage: false,
17  collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
18  moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
19  coverageReporters: ['text-summary', 'lcov'],
20};
21