Skip to content

Commit 2712dc2

Browse files
authored
fix: import pretty-format from @testing-library/dom (#821)
1 parent e07e641 commit 2712dc2

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"license": "MIT",
4545
"dependencies": {
4646
"@babel/runtime": "^7.12.1",
47-
"@testing-library/dom": "^7.26.4"
47+
"@testing-library/dom": "^7.26.6"
4848
},
4949
"devDependencies": {
5050
"@testing-library/jest-dom": "^5.11.5",

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)