Method “type” is meant to be run on 1 node. n found instead
SupriyaPKalghatgi opened this issue · comments
SupriyaPKalghatgi commented
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.64.3",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react-native": "10.1.1",
"@testing-library/user-event": "^14.4.3",
@wojtekmaj/enzyme-adapter-react-17
"expo": "^44.0.0",
"jest": "29.0.2",
"jest-expo": "^46.0.1",
"jest-environment-jsdom": "^28.1.2",
"jest-expo-enzyme": "^1.4.0",
"jsdom": "^20.0.0",
"jsdom-global": "^3.0.2",
"react-test-renderer": "17.0.1",
Wojciech Maj commented
Clearly there are two elements with this test ID, so this works as designed.
Side note: if you already have React Testing Library get rid of Enzyme if you can.
Happy coding!
SupriyaPKalghatgi commented
@wojtekmaj I lately read your article about Enzyme
I will go ahead with RTL