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 Apr 18, 2023. It is now read-only.
I never used Enzyme before and started at React 17 from the get go.
But for curiosity I ran yarn add --dev enzyme-adapter-react-16 @types/enzyme-adapter-react-16 and it seems like the adapter isn't exported the same way. I had to import it with:
import*asAdapterfrom"enzyme-adapter-react-16";
Whereas the React 17 adapter has to be imported with:
Typings are maintained by community here as I don't have knowledge in this matter. Feel free to raise PR if you know how to change it and how to test it.
Hi,
I tried to use the adapter in a Typescript environment.
My
.mocharc.json
requirets-node
and my adapter setup file:My
support.ts
file is:The imported Adapter is
undefined
. It works fine though in Javascript.The text was updated successfully, but these errors were encountered: