Skip to content

Commit 8c0054e

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.
1 parent 23e496b commit 8c0054e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 | true | false
2626
} | string[]
2727

2828
/**

0 commit comments

Comments
 (0)