Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat(test-utils): add types for auto destroy methods
Add types for auto destroy methods, the hook type is typed loosely to be agnostic to testing frameworks.
  • Loading branch information
blake-newman authored Oct 23, 2020
commit 52679c3a279bd521c8d5453e9f96446b2a89ae0e
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>