-
Notifications
You must be signed in to change notification settings - Fork 304
Open
Description
Describe the bug
After updating to 0.59.x our tests started failing with the error "Cannot find module './src/specs/NativeStripeSdkModule' from 'node_modules/@stripe/stripe-react-native/jest/mock.js'"
To Reproduce
Steps to reproduce the behavior:
- Install @stripe/stripe-react-native v0.59.0 or later
- Follow the Jest setup instructions
- Run Jest
Expected behavior
The tests should work properly
Screenshots
N/A
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
This seems to be due to the jest.mock call introduced in 976e5f6. Changing the jest.mock call from ./src/specs/NativeStripeSdkModule to ../src/specs/NativeStripeSdkModule fixed the issue for me.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels