1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-jest-typescript/jest.config.js

17 lines
388 B
JavaScript
Raw Normal View History

const TEST_REGEX = '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$'
module.exports = {
setupFiles: ['<rootDir>/jest.setup.js'],
testRegex: TEST_REGEX,
transform: {
'^.+\\.tsx?$': 'babel-jest'
},
testPathIgnorePatterns: [
'<rootDir>/.next/', '<rootDir>/node_modules/'
],
moduleFileExtensions: [
'ts', 'tsx', 'js', 'jsx'
],
collectCoverage: true
}