mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
22 lines
451 B
JavaScript
22 lines
451 B
JavaScript
|
const TEST_REGEX = '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$'
|
||
|
|
||
|
module.exports = {
|
||
|
setupFiles: ['<rootDir>/jest.setup.js'],
|
||
|
globals: {
|
||
|
'ts-jest': {
|
||
|
'useBabelrc': true
|
||
|
}
|
||
|
},
|
||
|
testRegex: TEST_REGEX,
|
||
|
transform: {
|
||
|
'^.+\\.tsx?$': 'ts-jest'
|
||
|
},
|
||
|
testPathIgnorePatterns: [
|
||
|
'<rootDir>/.next/', '<rootDir>/node_modules/'
|
||
|
],
|
||
|
moduleFileExtensions: [
|
||
|
'ts', 'tsx', 'js', 'jsx'
|
||
|
],
|
||
|
collectCoverage: true
|
||
|
}
|