New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jest-expo tests fails with "ReferenceError: self is not defined" #2192
Comments
Changing this line in
to:
...seems to solve the problem. |
Fix without modifying any code:
Related items: |
Thanks, that worked. And thanks for the background info too! |
error caused by a package requiring a version of fetch expecting the self global variable to be in scope (and it wasnt)
Hi everyone. I've been trying to fix this issue in my project for some time already but with no success. I have no big changes to my project yet and inited with Expo. Here's my package.json:
|
Environment
Environment:
OS: Windows 10
Node: 8.11.4
Yarn: 1.3.2
npm: 6.4.1
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found
Packages: (wanted => installed)
expo: ^29.0.0 => 29.0.0
react: 16.3.1 => 16.3.1
react-native: expo/react-native#sdk-29 => 0.55.4
Steps to Reproduce
Stacktrace:
Expected Behavior
Tests would run successfully.
Actual Behavior
All tests crash with "ReferenceError: self is not defined"
The text was updated successfully, but these errors were encountered: