Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: import pretty-format from testing-library/dom #185

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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