mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
c5c5564dbf
* Added with-jest-typescript example with files and readme * Updated package.json As per the comment, updated the package.json so the info is same as in other examples. * Proper name in package.json
22 lines
451 B
JavaScript
22 lines
451 B
JavaScript
const TEST_REGEX = '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$'
|
|
|
|
module.exports = {
|
|
setupFiles: ['<rootDir>/jest.setup.js'],
|
|
globals: {
|
|
'ts-jest': {
|
|
'useBabelrc': true
|
|
}
|
|
},
|
|
testRegex: TEST_REGEX,
|
|
transform: {
|
|
'^.+\\.tsx?$': 'ts-jest'
|
|
},
|
|
testPathIgnorePatterns: [
|
|
'<rootDir>/.next/', '<rootDir>/node_modules/'
|
|
],
|
|
moduleFileExtensions: [
|
|
'ts', 'tsx', 'js', 'jsx'
|
|
],
|
|
collectCoverage: true
|
|
}
|