-
Notifications
You must be signed in to change notification settings - Fork 40
Closed
Labels
Description
eslint-plugin-jest-dom
version: v3.9.0node
version: N/Anpm
version: N/A
Relevant code or config: package.json
"dependencies": {
...
"@testing-library/dom": "^7.28.1",
...
},
What you did: Install latest @testing-library/[email protected]
, @testing-library/[email protected]
, and [email protected]
.
What happened: testing-library/dom-testing-library#963
TypeError: Cannot destructure property 'DOMElement' of '_prettyFormat.default.plugins' as it is undefined.
...
at Object.<anonymous> (node_modules/@testing-library/dom/dist/pretty-dom.js:33:3)
at Object.<anonymous> (node_modules/@testing-library/dom/dist/config.js:11:18)
at Object.<anonymous> (node_modules/@testing-library/dom/dist/queries/label-text.js:8:15)
at Object.<anonymous> (node_modules/@testing-library/dom/dist/queries/index.js:7:18)
at Object.<anonymous> (node_modules/@testing-library/dom/dist/get-queries-for-element.js:8:46)
at Object.<anonymous> (node_modules/@testing-library/dom/dist/index.js:61:29)
Problem description:
@testing-library/[email protected]
isn't compatible with the latest @testing-library/[email protected]
release.
Suggested solution:
"dependencies": {
...
"@testing-library/dom": "^7.28.1 || ^8.0.0",
...
},
Related: #185
nftgeek