2021-04-20 01:15:07 +02:00
|
|
|
module.exports = {
|
|
|
|
roots: ['<rootDir>'],
|
|
|
|
transform: {
|
|
|
|
'^.+\\.(js|jsx|ts|tsx)$': 'babel-jest'
|
|
|
|
},
|
|
|
|
moduleDirectories: ['node_modules', './'],
|
|
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
|
|
|
|
setupFilesAfterEnv: [
|
|
|
|
'@testing-library/jest-dom/extend-expect',
|
|
|
|
'@testing-library/react'
|
|
|
|
],
|
|
|
|
collectCoverage: true,
|
|
|
|
collectCoverageFrom: [
|
|
|
|
'**/*.{js,jsx,ts,tsx}',
|
|
|
|
'!**/*.d.ts',
|
|
|
|
'!**/.next/**',
|
|
|
|
'!**/node_modules/**',
|
|
|
|
'!**/next.config.js',
|
|
|
|
'!**/postcss.config.js',
|
2021-05-08 19:52:04 +02:00
|
|
|
'!**/tailwind.config.js',
|
2021-04-20 01:15:07 +02:00
|
|
|
'!**/workbox-*.js',
|
2021-04-20 18:23:05 +02:00
|
|
|
'!**/sw.js',
|
|
|
|
'!**/jest.config.js'
|
2021-04-20 01:15:07 +02:00
|
|
|
],
|
|
|
|
coverageDirectory: './coverage',
|
|
|
|
coverageReporters: ['text', 'cobertura']
|
|
|
|
}
|