Skip to content

Commit

Permalink
feat(test-utils): add types for auto destroy methods (#1724)
Browse files Browse the repository at this point in the history
Add types for auto destroy methods, the hook type is typed loosely to be agnostic to testing frameworks.
  • Loading branch information
blake-newman committed Oct 30, 2020
1 parent 8c56db6 commit e1c2526
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/test-utils/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,7 @@ export declare function shallowMount<Props = DefaultProps, PropDefs = PropsDefin
export declare function createWrapper(node: Vue, options?: WrapperOptions): Wrapper<Vue>
export declare function createWrapper(node: HTMLElement, options?: WrapperOptions): Wrapper<null>

export declare function enableAutoDestroy(hook: (...args: any[]) => any): void
export declare function resetAutoDestroyState(hook: (...args: any[]) => any): void

export declare let RouterLinkStub: VueClass<Vue>

0 comments on commit e1c2526

Please sign in to comment.