๐Ÿ“ฆ Kong / httpsnippet

๐Ÿ“„ jest.config.js ยท 18 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18/** @type { import('@jest/types').Config.InitialOptions } */
module.exports = {
  collectCoverage: false,
  globals: {
    'ts-jest': {
      isolatedModules: true,
    },
  },
  moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
  modulePathIgnorePatterns: ['<rootDir>/dist'],
  resetMocks: true,
  resetModules: true,
  testEnvironment: 'node',
  testRegex: ['.+\\.test\\.tsx?$'],
  transform: { '^.+\\.tsx?$': 'ts-jest' },
  // verbose: true,
};