File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { VueWrapper } from './vueWrapper'
4
4
import { DOMWrapper } from './domWrapper'
5
5
6
6
interface GlobalConfigOptions {
7
- global : GlobalMountOptions
7
+ global : Required < GlobalMountOptions >
8
8
plugins : {
9
9
VueWrapper : Pluggable < VueWrapper < ComponentPublicInstance > >
10
10
DOMWrapper : Pluggable < DOMWrapper < Element > >
@@ -56,7 +56,15 @@ export const config: GlobalConfigOptions = {
56
56
stubs : {
57
57
transition : true ,
58
58
'transition-group' : true
59
- }
59
+ } ,
60
+ provide : { } ,
61
+ components : { } ,
62
+ config : { } ,
63
+ directives : { } ,
64
+ mixins : [ ] ,
65
+ mocks : { } ,
66
+ plugins : [ ] ,
67
+ renderStubDefaultSlot : false
60
68
} ,
61
69
plugins : {
62
70
VueWrapper : new Pluggable ( ) ,
Original file line number Diff line number Diff line change @@ -5,12 +5,15 @@ import Hello from './components/Hello.vue'
5
5
describe ( 'config' , ( ) => {
6
6
beforeEach ( ( ) => {
7
7
config . global = {
8
- components : undefined ,
9
- directives : undefined ,
10
- mixins : undefined ,
11
- plugins : undefined ,
12
- mocks : undefined ,
13
- provide : undefined
8
+ components : { } ,
9
+ directives : { } ,
10
+ mixins : [ ] ,
11
+ plugins : [ ] ,
12
+ mocks : { } ,
13
+ provide : { } ,
14
+ stubs : { } ,
15
+ config : { } ,
16
+ renderStubDefaultSlot : false
14
17
}
15
18
16
19
jest . clearAllMocks ( )
You can’t perform that action at this time.
0 commit comments