Skip to content

Commit

Permalink
test: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Zuev committed Dec 24, 2021
1 parent e82e279 commit 9cbffe1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/jest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ import * as path from 'path';
* https://jestjs.io/docs/configuration
*/

const modulesToTransform = [
'node-fetch',
'fetch-blob',
'data-uri-to-buffer',
'formdata-polyfill',
];

export default {
moduleFileExtensions: [
'js',
Expand All @@ -15,4 +22,7 @@ export default {
transform: {
'^.+\\.[tj]s$': 'ts-jest',
},
transformIgnorePatterns: [
`node_modules/(?!(${modulesToTransform.join('|')})/.*)`,
],
};

0 comments on commit 9cbffe1

Please sign in to comment.