You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 26, 2019. It is now read-only.
Enzyme should be able to find the component using its displayName (TestComponent).
Actual Behavior
Enzyme can't find the component because it doesn't have a displayName. The output of debug() prints <Component /> instead of the component's actual name.
Other notes
This works fine during development; if I inspect my React tree using React Developer Tools the component name shows correctly. The displayName just isn't being set during testing.
Let me know if you need more details. Thanks!
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is this a bug report?
Yes.
Environment
react-scripts-ts
version: [email protected]node -v
: v8.10.0npm -v
: 6.4.1yarn --version
: 1.10.1enzyme
version: 3.7.0enzyme-adapter-react-16
version: ^1.6.0Operating system: Ubuntu 18.04.1
Steps to Reproduce
Expected Behavior
Enzyme should be able to find the component using its
displayName
(TestComponent
).Actual Behavior
Enzyme can't find the component because it doesn't have a
displayName
. The output ofdebug()
prints<Component />
instead of the component's actual name.Other notes
This works fine during development; if I inspect my React tree using React Developer Tools the component name shows correctly. The
displayName
just isn't being set during testing.Let me know if you need more details. Thanks!
The text was updated successfully, but these errors were encountered: