mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
5f4c19da35
Co-authored-by: Opender Singh <opender.singh@konghq.com>
22 lines
579 B
JavaScript
22 lines
579 B
JavaScript
/** @type { import('@jest/types').Config.InitialOptions } */
|
|
module.exports = {
|
|
globals: {
|
|
'ts-jest': {
|
|
isolatedModules: true,
|
|
},
|
|
},
|
|
testEnvironment: 'jsdom',
|
|
transform: {
|
|
'^.+\\.tsx?$': 'ts-jest',
|
|
},
|
|
setupFilesAfterEnv: ['./src/jest/setup-after-env.ts'],
|
|
verbose: false,
|
|
resetMocks: true,
|
|
resetModules: true,
|
|
testRegex: ['.+\\.test\\.tsx?$'],
|
|
collectCoverage: false,
|
|
collectCoverageFrom: ['src/**/*.{js,jsx,ts,tsx}'],
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
coverageReporters: ['text-summary', 'lcov'],
|
|
};
|