Skip to content

Commit e1c2526

Browse files
authored
feat(test-utils): add types for auto destroy methods (#1724)
Add types for auto destroy methods, the hook type is typed loosely to be agnostic to testing frameworks.
1 parent 8c56db6 commit e1c2526

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/test-utils/types/index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,7 @@ export declare function shallowMount<Props = DefaultProps, PropDefs = PropsDefin
183183
export declare function createWrapper(node: Vue, options?: WrapperOptions): Wrapper<Vue>
184184
export declare function createWrapper(node: HTMLElement, options?: WrapperOptions): Wrapper<null>
185185

186+
export declare function enableAutoDestroy(hook: (...args: any[]) => any): void
187+
export declare function resetAutoDestroyState(hook: (...args: any[]) => any): void
188+
186189
export declare let RouterLinkStub: VueClass<Vue>

0 commit comments

Comments
 (0)