Jest mocks not found on version 1.10.0
See original GitHub issueDescription
Jest does not find react-native-gesture-handler
mocks on the last version (1.10.0). Probably related to #1199
Screenshots
Steps To Reproduce
- Update
react-native-gesture-handler
to version1.10.0
- Run
yarn test
Expected behavior
Run test cases normally as it always does.
Actual behavior
Fails with error: Module <rootDir>/node_modules/react-native-gesture-handler/jestSetup.js in the setupFiles option was not found.
Package versions
- React: 16.13.1
- React Native: 0.63.4
- React Native Gesture Handler: 1.10.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:8
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Jest Not Find Mock Module - Stack Overflow
Manual mocks are defined by writing a module in a mocks/ subdirectory immediately adjacent to the module. For example, to mock a module ......
Read more >Testing with Jest | React Native Gesture Handler
This is unreleased documentation for React Native Gesture Handler Next version. For up-to-date documentation, see the latest version (2.6.0 – 2.8.0).
Read more >Manual Mocks - Jest
Manual mocks are used to stub out functionality with mock data. For example, instead of accessing a remote resource like a website or...
Read more >Mockito (Mockito 4.10.0 API) - javadoc.io
Before the release 1.8, Mockito spies were not real partial mocks. The reason was we thought partial mock is a code smell. At...
Read more >Mocking a JavaScript Class with Jest, two ways to make it easier
A guide on how to mock a JavaScript class using Jest, comparing dependency ... If AUD is not found in the response it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jakub-gonet Still not able to use the mock even on latest version 1.10.1 – I see the following error
Also seeing “Cannot read property ‘Direction’ of undefined” in 1.10.1. 1.9.0 works fine - reverted for the time being.