Skip to content

Commit

Permalink
vue-test-utils: allow false as a component stub value
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
garyo committed May 10, 2019
1 parent 23e496b commit 8c0054e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/test-utils/types/index.d.ts
Expand Up @@ -22,7 +22,7 @@ type Slots = {
* If it is an array of string, the specified children are replaced by blank components
*/
type Stubs = {
[key: string]: Component | string | true
[key: string]: Component | string | true | false
} | string[]

/**
Expand Down

0 comments on commit 8c0054e

Please sign in to comment.