2018-04-13 16:53:59 +02:00
|
|
|
const TEST_REGEX = '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$'
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
setupFiles: ['<rootDir>/jest.setup.js'],
|
|
|
|
testRegex: TEST_REGEX,
|
|
|
|
transform: {
|
2018-06-06 10:31:21 +02:00
|
|
|
'^.+\\.tsx?$': 'babel-jest'
|
2018-04-13 16:53:59 +02:00
|
|
|
},
|
|
|
|
testPathIgnorePatterns: [
|
|
|
|
'<rootDir>/.next/', '<rootDir>/node_modules/'
|
|
|
|
],
|
|
|
|
moduleFileExtensions: [
|
|
|
|
'ts', 'tsx', 'js', 'jsx'
|
|
|
|
],
|
|
|
|
collectCoverage: true
|
|
|
|
}
|