#2493·enzyme

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

Author: HomyeeKingCreated Jan 27, 2021Updated Jul 14, 2023

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