Closed ivan-navarro-75 closed 4 years ago
Iāve found the solution,
basically I had to use the @testing-library/react-native preset and extend it with the jest-expo preset content. To be honest still donāt know why it didnāt work with the solution you have in the documentation.
module.exports = { preset: '@testing-library/react-native', haste: { defaultPlatform: 'ios', platforms: ['android', 'ios', 'native'] }, transform: { '^.+\.(js|ts|tsx)$': 'babel-jest', '^.+\.... }
expo
: ~36.0.0native-testing-library
version: ^5.0.3jest-expo
: "^36.0.1react-native
version: 0.61node
version: v12.14.0Relevant code or config:
What you did:
when I've tried to run my test
What happened:
I got this error:
Reproduction:
Problem description:
Suggested solution:
Can you help us fix this issue by submitting a pull request?