Skip to content

Commit

Permalink
build(jest): add transformIgnorePatterns for ESM node modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Oct 27, 2021
1 parent c7f5a82 commit 8a0ccf8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ module.exports = {
'^package$': '<rootDir>/package.json'
},
setupFilesAfterEnv: ['./test/setup.ts'],
collectCoverageFrom: ['src/**/*.ts?(x)', 'external-scripts/**/*.ts?(x)']
collectCoverageFrom: ['src/**/*.ts?(x)', 'external-scripts/**/*.ts?(x)'],
transformIgnorePatterns: [`/node_modules/(?!${['node-fetch', 'fetch-blob'].join('|')})`]
};

0 comments on commit 8a0ccf8

Please sign in to comment.