mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
9c4eefcdbf
* Add prettier for examples directory * Fix files * Fix linting * Add prettier script in case it has to be ran again
13 lines
372 B
JavaScript
13 lines
372 B
JavaScript
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
|
|
}
|