diff --git a/jest.config.js b/jest.config.js index 6337bc89..1b2efe49 100644 --- a/jest.config.js +++ b/jest.config.js @@ -8,4 +8,9 @@ module.exports = Object.assign(jestConfig, { ], setupFilesAfterEnv: ['/test/setup.ts'], moduleFileExtensions: ['ts', 'js', 'tsx', 'jsx'], + moduleNameMapper: { + ...jestConfig.moduleNameMapper, + '^@testing-library/preact$': + '/../../node_modules/@testing-library/preact/dist/cjs/index.js', + }, })