Update jest.config.js

This commit is contained in:
Steve Ruiz 2021-06-22 19:14:01 +01:00
parent 9e2938c3d5
commit 07f96a8416

View file

@ -4,11 +4,10 @@ module.exports = {
moduleFileExtensions: ['ts', 'tsx', 'mjs', 'js', 'json', 'jsx'], moduleFileExtensions: ['ts', 'tsx', 'mjs', 'js', 'json', 'jsx'],
testPathIgnorePatterns: ['<rootDir>[/\\\\](node_modules|.next)[/\\\\]'], testPathIgnorePatterns: ['<rootDir>[/\\\\](node_modules|.next)[/\\\\]'],
transformIgnorePatterns: [ transformIgnorePatterns: [
'node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-fs-access)/)' 'node_modules/(?!(browser-fs-access)/)',
], ],
transform: { transform: {
'^.+\\.(ts|tsx|mjs)$': 'babel-jest', '^.+\\.(ts|tsx|mjs)$': 'babel-jest',
'^.+\\.mjs$': 'babel-jest',
}, },
modulePaths: ['<rootDir>', 'node_modules'], modulePaths: ['<rootDir>', 'node_modules'],
watchPlugins: [ watchPlugins: [