Skip to content

prettyDOM is not exported from typings file #108

Closed
@icfantv

Description

@icfantv

prettyDOM should be re-exported by react-testing-library's typings file. I will file a PR after entering this.

  • react-testing-library version: 3.1.3
  • react version: N/A
  • node version: N/A
  • npm (or yarn) version: N/A

Relevant code or config:

N/A

What you did:

import { prettyDOM } from 'react-testing-library'

What happened:

Typescript compiler errors w/

error TS2305: Module '"..../node_modules/react-testing-library/typings/index"' has no exported member 'prettyDOM'.

Reproduction:

N/A

Problem description:

Breaks Typescript compiler

Suggested solution:

Simply adding export { prettyDOM } from 'dom-testing-library' to typings/index.d.ts will fix this issue.

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