Testing files that omit react import in jest #13528
Unanswered
gabrielgrover
asked this question in
Help
Replies: 2 comments 6 replies
-
Not yet, same question! |
Beta Was this translation helpful? Give feedback.
0 replies
-
This does not reproduce for me locally. Are you using our |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
A project I am working on has many components that omit the react import
import React from "react"
However when I try to test said components i get the following error.
error TS2686: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
Has anyone here successfully configured jest for a nextjs project that omits the react import?
Beta Was this translation helpful? Give feedback.
All reactions