Skip to content

Commit 0550919

Browse files
committed
vue-test-utils: allow false as a component stub value
Updated types/index.d.ts to allow false to be passed as a component stub value in mount or shallowMount. `false` in this case means don't use a stub for the given component. Also updated server-test-utils.
1 parent 23e496b commit 0550919

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: packages/server-test-utils/types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type VueClass<V extends Vue> = (new (...args: any[]) => V) & typeof Vue
1010
* If it is an array of string, the specified children are replaced by blank components
1111
*/
1212
type Stubs = {
13-
[key: string]: Component | string | true
13+
[key: string]: Component | string | boolean
1414
} | string[]
1515

1616
/**

Diff for: packages/test-utils/types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type Slots = {
2222
* If it is an array of string, the specified children are replaced by blank components
2323
*/
2424
type Stubs = {
25-
[key: string]: Component | string | true
25+
[key: string]: Component | string | boolean
2626
} | string[]
2727

2828
/**

0 commit comments

Comments
 (0)