Skip to content

Commit

Permalink
try to fix preact test
Browse files Browse the repository at this point in the history
  • Loading branch information
silviuaavram committed May 16, 2024
1 parent d7c8563 commit a109292
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ module.exports = Object.assign(jestConfig, {
],
setupFilesAfterEnv: ['<rootDir>/test/setup.ts'],
moduleFileExtensions: ['ts', 'js', 'tsx', 'jsx'],
moduleNameMapper: {
...jestConfig.moduleNameMapper,
'^@testing-library/preact$':
'<rootDir>/../../node_modules/@testing-library/preact/dist/cjs/index.js',
},
})

0 comments on commit a109292

Please sign in to comment.