Open
Description
jest.bug.720.mov
can anyone explain to me why adding screen.debug or logTestingPlaygroundURL to the test code makes the test pass?
I was refactoring a test, trying to speed it up a bit by replacing the unnecessary find*
selector with the query
selector (when I check that something is not on the page) but it made one of my tests fail and I tried to debug it and I can't because adding debug printings makes the test pass ¯\(ツ)/¯
I'm not even adding a new import of the screen - it is already there.
Any thoughts?
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/react": "16.2.0",
"@testing-library/user-event": "14.6.1",
"es-jest": "2.1.0",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"jest-fixed-jsdom": "0.0.9",
Metadata
Metadata
Assignees
Labels
No labels