File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
packages/test-utils/types Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ export interface VueTestUtilsConfigOptions {
180180 stubs : Record < string , Component | boolean | string >
181181 mocks : Record < string , any >
182182 methods : Record < string , Function >
183- provide ?: Record < string , any > ,
183+ provide ?: Record < string | symbol , any > ,
184184 showDeprecationWarnings ?: boolean
185185 deprecationWarningHandler ?: Function
186186}
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ config.stubs = {
9999}
100100config . stubs [ 'quuux' ] = true
101101config . mocks = {
102- foo : 'bar' ,
102+ foo : 'bar'
103103}
104104config . mocks [ 'foo' ] = {
105105 bar : 'baz'
@@ -109,8 +109,10 @@ config.methods = {
109109}
110110config . methods [ 'foo' ] = ( ) => true
111111config . provide = {
112- foo : { }
112+ foo : { } ,
113+ [ Symbol ( 'injection key' ) ] : { }
113114}
115+
114116config . provide [ 'foo' ] = {
115117 bar : { }
116118}
You can’t perform that action at this time.
0 commit comments