Closed
Description
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.3react
version: N/Anode
version: N/Anpm
(oryarn
) 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
Labels
No labels