Skip to content

Commit

Permalink
fix: import pretty-format from @testing-library/dom
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosvega91 committed Nov 10, 2020
1 parent 9ba1644 commit d8c4612
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions types/index.d.ts
@@ -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 d8c4612

Please sign in to comment.