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.
Also updated server-test-utils.
  • Loading branch information
garyo committed May 15, 2019
1 parent 23e496b commit 0550919
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/server-test-utils/types/index.d.ts
Expand Up @@ -10,7 +10,7 @@ type VueClass<V extends Vue> = (new (...args: any[]) => V) & typeof Vue
* 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 | boolean
} | string[]

/**
Expand Down
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 | boolean
} | string[]

/**
Expand Down

0 comments on commit 0550919

Please sign in to comment.