insomnia/jest-preset.js

17 lines
415 B
JavaScript
Raw Normal View History

/** @type { import('@jest/types').Config.InitialOptions } */
module.exports = {
collectCoverage: false,
globals: {
'ts-jest': {
isolatedModules: false,
},
},
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
resetMocks: true,
resetModules: true,
testEnvironment: 'node',
testRegex: ['.+\\.test\\.tsx?$'],
transform: { '^.+\\.tsx?$': 'ts-jest' },
verbose: false,
};