enzymejs / enzyme

JavaScript Testing utilities for React
https://enzymejs.github.io/enzyme/
MIT License
19.95k stars 2.01k forks source link

Method “simulate” is meant to be run on 1 node. 0 found instead. #2493

Open HomyeeKing opened 3 years ago

HomyeeKing commented 3 years ago

Current behavior

image image

Expected behavior

According to the console, it does have 1 node, but I have no idea why this error come up :/

Your environment

API

Version

library version
enzyme ^3.10.0
react ^17.0.1
react-dom
react-test-renderer
adapter (below)

step to reproduce

HomyeeKing commented 3 years ago

@ljharb here

HomyeeKing commented 3 years ago

sorry to bother you, any solution here?

ljharb commented 3 years ago

Not yet; I have this on my list and will get to it soon :-)

jjkbb123 commented 1 year ago

image I have a similare question too!