- Install the dependencies by running the command
yarn - Run the test with the command
yarn test
The test fails on the master branch when having @testing-library/dom in version 7.21.2
The test passes on the passing-test branch when having @testing-library/dom in version 7.21.1