mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-04 20:41:30 +01:00
27 lines
673 B
JavaScript
27 lines
673 B
JavaScript
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',
|
|
'!**/workbox-*.js',
|
|
'!**/sw.js',
|
|
'!**/jest.config.js'
|
|
],
|
|
coverageDirectory: './coverage',
|
|
coverageReporters: ['text', 'cobertura']
|
|
}
|