Replies: 2 comments
-
Actually just solved it.. It was strange because it started happening only recently and only with certain tests. Then I realized I had to enableFetchMocks()
Writing here in case it solves and future people |
Beta Was this translation helpful? Give feedback.
0 replies
-
@k2xl Glad to hear it's working. Are you mocking node-fetch (NTARH's fetch function) in your setup? I'm curious what was interfering with the import and why your solution worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When running
npm test
I see:node -v
showsv16.20.0
npm -v
shows9.8.1
I'm on Mac OSX using jest. I've tried rm -rf the node_modules and reinstalling but still getting this error.
Beta Was this translation helpful? Give feedback.
All reactions