Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a051013

Browse files
fix: import pretty-format from testing-library/dom (#185)
1 parent 853d998 commit a051013

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎types/index.d.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,12 @@ import {ThisTypedMountOptions, VueClass} from '@vue/test-utils'
55
import {Store, StoreOptions} from 'vuex'
66
import Router, {RouteConfig} from 'vue-router'
77
// eslint-disable-next-line import/no-extraneous-dependencies
8-
import {OptionsReceived as PrettyFormatOptions} from 'pretty-format'
9-
import {queries, EventType, BoundFunctions} from '@testing-library/dom'
8+
import {
9+
queries,
10+
EventType,
11+
BoundFunctions,
12+
prettyFormat,
13+
} from '@testing-library/dom'
1014

1115
// NOTE: fireEvent is overridden below
1216
export * from '@testing-library/dom'
@@ -20,7 +24,7 @@ export interface RenderResult extends BoundFunctions<typeof queries> {
2024
| DocumentFragment
2125
| Array<Element | DocumentFragment>,
2226
maxLength?: number,
23-
options?: PrettyFormatOptions,
27+
options?: prettyFormat.OptionsReceived,
2428
) => void
2529
unmount(): void
2630
isUnmounted(): boolean

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /