Skip to content

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

@jonioni

Description

@jonioni
  • 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/[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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions