Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
HomyeeKing opened this issue Jan 27, 2021 · 4 comments
Open
1 of 3 tasks

Comments

@HomyeeKing
Copy link

HomyeeKing commented Jan 27, 2021

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

  • shallow
  • mount
  • render

Version

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

step to reproduce

  • fork this repo and run npm install
  • switch to branch fix/test
  • run npm test -- --watch components/typography/__tests__/index
    then you can see the fail one
@HomyeeKing
Copy link
Author

@ljharb here

@HomyeeKing
Copy link
Author

sorry to bother you, any solution here?

@ljharb
Copy link
Member

ljharb commented Feb 10, 2021

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

@jjkbb123
Copy link

image
I have a similare question too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants