Skip to content

Commit

Permalink
tests: narrow type specificity for mount helper as it was causing tro…
Browse files Browse the repository at this point in the history
…uble.
  • Loading branch information
LinusBorg committed Nov 7, 2022
1 parent 1629187 commit 4dd902b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/__tests__/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import { mount, type MountingOptions } from '@vue/test-utils'
import { defineComponent } from 'vue'
import type { createComposableFromMixin } from '../createComposable'

type TCreateComposable = ReturnType<typeof createComposableFromMixin>

export const wrapComposable = <
T extends TCreateComposable,
O extends MountingOptions<{}>
>(
export const wrapComposable = <O extends MountingOptions<{}>>(
composable: any,
options: O = {} as O,
extensions: Record<string, any> = {}
Expand Down

0 comments on commit 4dd902b

Please sign in to comment.