Update `@testing-library/dom` Dependency for the `v8` Release
See original GitHub issueeslint-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/dom@8.1.0
, @testing-library/jest-dom@5.14.1
, and eslint-plugin-jest-dom@3.9.0
.
What happened: https://github.com/testing-library/dom-testing-library/issues/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/dom@7.x.x
isn’t compatible with the latest @testing-library/dom@8.x.x
release.
Suggested solution:
"dependencies": {
...
"@testing-library/dom": "^7.28.1 || ^8.0.0",
...
},
Related: #185
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
@testing-library/dom - npm
Simple and complete DOM testing utilities that encourage good testing practices.. Latest version: 8.19.1, last published: 9 days ago.
Read more >@testing-library/dom - npm Package Health Analysis | Snyk
We found that @testing-library/dom demonstrates a positive version release cadence with at least one new version released in the past 3 months. As...
Read more >Changelog - Cypress Documentation
Users working in React Component Testing projects can now generate a basic spec file from the components that exist in their project. Addresses...
Read more >@testing-library/dom NPM | npm.io
Check @testing-library/dom 8.19.0 package - Last release 8.19.0 with MIT licence at our NPM packages aggregator and search engine.
Read more >npm Peer Dependencies - Fathom
Test and build tools are commonly in the dev dependencies, for example: "devDependencies": { "@testing-library/jest-dom": "^5.11.6", ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Done. You are admin, thanks for the help @G-Rath
@benmonro no problem - I’m happy to help with support 😃