Files

32 lines
966 B
JavaScript
Raw Permalink Normal View History

export default {
// Automatically clear mock calls and instances between every test
clearMocks: true,
2025-02-02 14:10:51 -05:00
// Indicates whether the coverage information should be collected while executing the test
collectCoverage: true,
2025-02-02 14:10:51 -05:00
// The directory where Jest should output its coverage files
coverageDirectory: 'coverage',
2025-02-02 14:10:51 -05:00
// The test environment that will be used for testing
testEnvironment: 'node',
2025-02-02 14:10:51 -05:00
// The glob patterns Jest uses to detect test files
testMatch: [
'**/__tests__/**/*.test.[jt]s?(x)',
'**/__tests__/**/*.spec.[jt]s?(x)',
'**/?(*.)+(spec|test).[jt]s?(x)',
],
2025-02-02 14:10:51 -05:00
// A map from regular expressions to paths to transformers
transform: {
'^.+\\.jsx?$': 'babel-jest',
},
2025-02-02 14:10:51 -05:00
// Ignore node_modules except for chalk (which is ESM only)
transformIgnorePatterns: ['/node_modules/(?!(chalk)/)'],
// An array of regexp pattern strings that are matched against all test files
testPathIgnorePatterns: ['/node_modules/'],
};