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 fe7f00d

Browse files
committed
Mark types as deprecated
1 parent 53c63d6 commit fe7f00d

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

‎types/index.d.ts‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
import {EmitsOptions} from 'vue'
55
import {MountingOptions} from '@vue/test-utils'
6-
import {StoreOptions} from 'vuex'
7-
import {RouteRecordRaw} from 'vue-router'
86
import {queries, EventType, BoundFunctions} from '@testing-library/dom'
97
// eslint-disable-next-line import/no-extraneous-dependencies
108
import {OptionsReceived as PrettyFormatOptions} from 'pretty-format'
@@ -33,8 +31,20 @@ type VueTestUtilsRenderOptions = Omit<
3331
'attachTo' | 'shallow' | 'propsData'
3432
>
3533
type VueTestingLibraryRenderOptions = {
36-
store?: StoreOptions<{}>
37-
routes?: RouteRecordRaw[]
34+
/**
35+
* @deprecated "store" parameter is deprecated on favor of providing it
36+
* as a plugin through `global.plugins`.
37+
*
38+
* @see add-link
39+
*/
40+
store?: Record<string, any>
41+
/**
42+
* @deprecated "routes" parameter is deprecated on favor of providing it
43+
* as a plugin through `global.plugins`.
44+
*
45+
* @see add-link
46+
*/
47+
routes?: Record<string, any>
3848
container?: Element
3949
baseElement?: Element
4050
}

‎types/test.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,8 @@ export function testOptions() {
7777
},
7878
global: {
7979
config: {isCustomElement: _ => true},
80+
plugins: [],
8081
},
81-
store: {
82-
state: {count: 3},
83-
strict: true,
84-
},
85-
routes: [{path: '/', component: () => SomeComponent, name: 'route name'}],
8682
baseElement: document.createElement('div'),
8783
container: document.createElement('div'),
8884
})

0 commit comments

Comments
(0)

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