We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@testing-library/jest-dom
node
npm
yarn
...
npm run setup
[test] FAIL src/__tests__/to-have-focus.js ● .toHaveFocus [test] expect(element).toHaveFocus() [test] Expected <input id="focused" type="text" /> [test] Received: null [test] 14 | focused.focus() 15 | > 16 | expect(focused).toHaveFocus() | ^ 17 | expect(notFocused).not.toHaveFocus() 18 | 19 | expect(() => expect(focused).not.toHaveFocus()).toThrowError() at Object.toHaveFocus (src/__tests__/to-have-focus.js:16:19) [test] [test] [test] Test Suites: 2 failed, 32 passed, 34 total [test] Tests: 2 failed, 126 passed, 128 total [test] Snapshots: 8 passed, 8 total
The text was updated successfully, but these errors were encountered:
Ok so I did some research and breaking change was introduced by this line: jsdom/jsdom@0371215...b4bb1c5#diff-0cd62b5fc481017f758f31a7be9cdd5eR12
this is pointing to document, however getRoot returns div
this
document
getRoot
div
Sorry, something went wrong.
🎉 This issue has been resolved in version 4.2.3 🎉
The release is available on:
npm package (@latest dist-tag)
Your semantic-release bot 📦🚀
Successfully merging a pull request may close this issue.
@testing-library/jest-dom
version: 4.1.2node
version: 12.6.0npm
(oryarn
) version: 6.11.3Relevant code or config:
...
What you did:
What happened:
Reproduction:
Problem description:
Suggested solution:
The text was updated successfully, but these errors were encountered: