improve testing experience #2487
JustFly1984
started this conversation in
Ideas
Replies: 1 comment 3 replies
-
Please always try to share a repro case in a runnable form - either by providing a git repository to clone or a codesandbox. OSS maintainers usually can't afford the time to set up the repro, even if exact steps are given. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I had an issue with testing emotion components with jest and @react-testing library, the case was missing
<ThemeProvider />
in the react component tree, but an TypeError in tests was pointing to mangled classname access on undefinedstyled.div()
. I've spend several hours debugging the case.It was crashing for any emotion component, even if theme is not accessed.
Is it possible to make sensible check for ThemeProvider existence instead of crashing with unreadable error stack?
Beta Was this translation helpful? Give feedback.
All reactions