Skip to content

TypeError: Cannot read property 'version' of undefined #735

Closed
@adamransom

Description

@adamransom
  • @testing-library/react version: 10.4.4
  • Testing Framework and version: Jest v24
  • DOM Environment: jsdom-sixteen
  • React version: 16.13.1

What you did:

Running any test that uses @testing-library/react fails with TypeError: Cannot read property 'version' of undefined that previously used to run fine on 10.4.3.

I imagine it's due to the version check in the latest version, but I can't figure out if it is something that I need to change about my config to get it working again? I have a very standard setup I believe and use the library as such:

// spec/support/react-testing-library.js

import React from "react";
import "@testing-library/jest-dom/extend-expect";
export * from "@testing-library/react";

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions