From 0550919555db7d6f4b668454d103684d35a10b6f Mon Sep 17 00:00:00 2001 From: Gary Oberbrunner Date: Fri, 10 May 2019 15:56:26 -0400 Subject: [PATCH] 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. --- packages/server-test-utils/types/index.d.ts | 2 +- packages/test-utils/types/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/server-test-utils/types/index.d.ts b/packages/server-test-utils/types/index.d.ts index a6d6e12ab..b526b588d 100644 --- a/packages/server-test-utils/types/index.d.ts +++ b/packages/server-test-utils/types/index.d.ts @@ -10,7 +10,7 @@ type VueClass = (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[] /** diff --git a/packages/test-utils/types/index.d.ts b/packages/test-utils/types/index.d.ts index 89e29f028..4ba612c90 100644 --- a/packages/test-utils/types/index.d.ts +++ b/packages/test-utils/types/index.d.ts @@ -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[] /**