-
-
Notifications
You must be signed in to change notification settings - Fork 737
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
All tests fail #1779
Comments
Looks like an incompatible version of node-fetch is installed. |
My local node-fetch version is 3.1.1. How to fix this problem? Maybe a patch to downgrade node-fetch? |
3.1.1 should be compatible. $ yarn why node-fetch
yarn why v1.22.17
[1/4] 🤔 Why do we have the module "node-fetch"...?
[2/4] 🚚 Initialising dependency graph...
[3/4] 🔍 Finding dependency...
[4/4] 🚡 Calculating file sizes...
=> Found "node-fetch@3.1.1"
info Has been hoisted to "node-fetch"
info This module exists because it's specified in "devDependencies".
info Disk size without dependencies: "180KB"
info Disk size with unique dependencies: "180KB"
info Disk size with transitive dependencies: "180KB"
info Number of shared dependencies: 3
=> Found "cross-fetch#node-fetch@2.1.2"
info This module exists because "jest-fetch-mock#cross-fetch" depends on it.
info Disk size without dependencies: "120KB"
info Disk size with unique dependencies: "120KB"
info Disk size with transitive dependencies: "120KB"
info Number of shared dependencies: 0
=> Found "@storybook/core#node-fetch@2.6.1"
info This module exists because "@storybook#react#@storybook#core" depends on it.
=> Found "isomorphic-fetch#node-fetch@1.7.3"
info This module exists because "@storybook#components#recompose#fbjs#isomorphic-fetch" depends on it.
info Disk size without dependencies: "172KB"
info Disk size with unique dependencies: "648KB"
info Disk size with transitive dependencies: "1.09MB"
info Number of shared dependencies: 4
✨ Done in 1.15s. |
According to node-fetch/node-fetch#1391, I think we need to downgrade node-fetch due to old jest |
node-fetch version 2.6.7 is testable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Device info
Describe the bug
When running test suite
yarn test
, yarn complains that all tests fail.An example log is listed below.
It seems that all tests fail because jest fails to recognize import.
The text was updated successfully, but these errors were encountered: