question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update `@testing-library/dom` Dependency for the `v8` Release

See original GitHub issue
  • eslint-plugin-jest-dom version: v3.9.0
  • node version: N/A
  • npm 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
benmonrocommented, Nov 21, 2021

Done. You are admin, thanks for the help @G-Rath

1reaction
G-Rathcommented, Nov 21, 2021

@benmonro no problem - I’m happy to help with support 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found