6d4395f22c
Order moduleFileExtensions from most used to least used extensions. Sources: https://jestjs.io/docs/en/configuration#modulefileextensions-arraystring and facebook/jest#7616
13 lines
422 B
JavaScript
13 lines
422 B
JavaScript
module.exports = {
|
|
roots: ['<rootDir>'],
|
|
moduleFileExtensions: ['ts', 'tsx', 'js', 'json', 'jsx'],
|
|
testPathIgnorePatterns: ['<rootDir>[/\\\\](node_modules|.next)[/\\\\]'],
|
|
transformIgnorePatterns: ['[/\\\\]node_modules[/\\\\].+\\.(ts|tsx)$'],
|
|
transform: {
|
|
'^.+\\.(ts|tsx)$': 'babel-jest',
|
|
'\\.graphql$': [
|
|
'graphql-let/jestTransformer',
|
|
{ subsequentTransformer: 'babel-jest' },
|
|
],
|
|
},
|
|
}
|