Skip to content

Commit

Permalink
fix: import pretty-format from testing-library/dom (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatanBobi committed Nov 24, 2020
1 parent 853d998 commit a051013
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ import {ThisTypedMountOptions, VueClass} from '@vue/test-utils'
import {Store, StoreOptions} from 'vuex'
import Router, {RouteConfig} from 'vue-router'
// eslint-disable-next-line import/no-extraneous-dependencies
import {OptionsReceived as PrettyFormatOptions} from 'pretty-format'
import {queries, EventType, BoundFunctions} from '@testing-library/dom'
import {
queries,
EventType,
BoundFunctions,
prettyFormat,
} from '@testing-library/dom'

// NOTE: fireEvent is overridden below
export * from '@testing-library/dom'
Expand All @@ -20,7 +24,7 @@ export interface RenderResult extends BoundFunctions<typeof queries> {
| DocumentFragment
| Array<Element | DocumentFragment>,
maxLength?: number,
options?: PrettyFormatOptions,
options?: prettyFormat.OptionsReceived,
) => void
unmount(): void
isUnmounted(): boolean
Expand Down

0 comments on commit a051013

Please sign in to comment.