UNPKG

dmvic

Version:

A DMVIC NPM package to manage DMVIC certificate requests

44 lines (34 loc) 1.15 kB
export default { testTimeout: 25000, // Automatically clear mock calls and instances between every test clearMocks: true, // Disable coverage collection collectCoverage: false, // An array of file extensions your modules use moduleFileExtensions: ['js', 'mjs', 'json', 'jsx', 'ts', 'mts', 'tsx', 'node'], // The test environment that will be used for testing testEnvironment: 'node', // The glob patterns Jest uses to detect test files testMatch: ['**.test.mjs', '**.test.mts'], // Support for ESM preset: 'ts-jest/presets/default-esm', extensionsToTreatAsEsm: ['.mts'], // A map from regular expressions to paths to transformers transform: { '^.+\\.mts?$': [ 'ts-jest', { useESM: true, tsconfig: { verbatimModuleSyntax: false, }, }, ], }, // Module name mapping for ESM imports moduleNameMapper: { '^(\\.{1,2}/.*)\\.js$': '$1', }, // Transform ignore patterns transformIgnorePatterns: ['node_modules/(?!(.*\\.mjs$))'], };