diff --git a/jest.test.config.js b/jest.test.config.js index 21014f4b7..72fff5d29 100644 --- a/jest.test.config.js +++ b/jest.test.config.js @@ -6,6 +6,11 @@ module.exports = { transform: { '^.+\\.(js|ts)$': 'babel-jest', }, + // @faker became ESM only starting from v10, + // so we need to allow Jest to transform it. + transformIgnorePatterns: [ + '/node_modules/(?!@faker-js/faker)(?!.pnpm/.*/@faker-js/faker)', + ], testMatch: ['**/*.spec.js', '**/*.spec.ts'], moduleFileExtensions: ['ts', 'js'], watchPlugins: ['jest-watch-typeahead/filename'],