Skip to content

Commit d8c4612

Browse files
committed
fix: import pretty-format from @testing-library/dom
fix #694
1 parent 9ba1644 commit d8c4612

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

types/index.d.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
// TypeScript Version: 3.8
22

3-
import {OptionsReceived as PrettyFormatOptions} from 'pretty-format'
4-
import {queries, Queries, BoundFunction} from '@testing-library/dom'
3+
import {
4+
queries,
5+
Queries,
6+
BoundFunction,
7+
prettyFormat,
8+
} from '@testing-library/dom'
59
import {act as reactAct} from 'react-dom/test-utils'
610

711
export * from '@testing-library/dom'
@@ -15,7 +19,7 @@ export type RenderResult<Q extends Queries = typeof queries> = {
1519
| DocumentFragment
1620
| Array<HTMLElement | DocumentFragment>,
1721
maxLength?: number,
18-
options?: PrettyFormatOptions,
22+
options?: prettyFormat.OptionsReceived,
1923
) => void
2024
rerender: (ui: React.ReactElement) => void
2125
unmount: () => boolean

0 commit comments

Comments
 (0)