File tree 2 files changed +15
-9
lines changed
2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 3
3
4
4
import { EmitsOptions } from 'vue'
5
5
import { MountingOptions } from '@vue/test-utils'
6
- import { StoreOptions } from 'vuex'
7
- import { RouteRecordRaw } from 'vue-router'
8
6
import { queries , EventType , BoundFunctions } from '@testing-library/dom'
9
7
// eslint-disable-next-line import/no-extraneous-dependencies
10
8
import { OptionsReceived as PrettyFormatOptions } from 'pretty-format'
@@ -33,8 +31,20 @@ type VueTestUtilsRenderOptions = Omit<
33
31
'attachTo' | 'shallow' | 'propsData'
34
32
>
35
33
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 >
38
48
container ?: Element
39
49
baseElement ?: Element
40
50
}
Original file line number Diff line number Diff line change @@ -77,12 +77,8 @@ export function testOptions() {
77
77
} ,
78
78
global : {
79
79
config : { isCustomElement : _ => true } ,
80
+ plugins : [ ] ,
80
81
} ,
81
- store : {
82
- state : { count : 3 } ,
83
- strict : true ,
84
- } ,
85
- routes : [ { path : '/' , component : ( ) => SomeComponent , name : 'route name' } ] ,
86
82
baseElement : document . createElement ( 'div' ) ,
87
83
container : document . createElement ( 'div' ) ,
88
84
} )
You can’t perform that action at this time.
0 commit comments