Skip to content

Commit

Permalink
fix: import pretty-format from @testing-library/dom (#821)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosvega91 authored Nov 10, 2020
1 parent e07e641 commit 2712dc2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"license": "MIT",
"dependencies": {
"@babel/runtime": "^7.12.1",
"@testing-library/dom": "^7.26.4"
"@testing-library/dom": "^7.26.6"
},
"devDependencies": {
"@testing-library/jest-dom": "^5.11.5",
Expand Down
10 changes: 7 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// TypeScript Version: 3.8

import {OptionsReceived as PrettyFormatOptions} from 'pretty-format'
import {queries, Queries, BoundFunction} from '@testing-library/dom'
import {
queries,
Queries,
BoundFunction,
prettyFormat,
} from '@testing-library/dom'
import {act as reactAct} from 'react-dom/test-utils'

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

0 comments on commit 2712dc2

Please sign in to comment.