Closed jsellam closed 6 months ago
Honestly not totally sure, I havenāt used jest much before besides simple functions.
I have the answer, I have added this in jest.config.js
const libsThatRequiredCompilation = ['dripsy', '@expo/html-elements'].join('|');
module.exports = {
preset: 'react-native',
setupFilesAfterEnv: ['@testing-library/jest-native/extend-expect'],
transformIgnorePatterns: [
`node_modules/(?!((jest-)?react-native|${libsThatRequiredCompilation}|@react-native(-community)?)/)`,
],
};
Hi, I'm starting a new project with react-native (BARE) 0.72.6 I have added dripsy with typescript and all is working well on devices and simulator, but my tests with jest are not working.
I use @testing-library/jest-native/extend-expec and when I run "jest --no-cache" I have this error :
Do you know how to use dripsy with jest please ?
thx Jeremie.