UNPKG

vuestic-ui

Version:
17 lines (16 loc) 850 B
import { PartialGlobalConfig } from '../../main'; export type Composable = (...args: any[]) => any; /** * Most of the composables are not going to work outside a setup script. * This function creates a wrapper component to use composables in a tests * environment. * If you want two or more composables to share the same state, pass them * as an array. * Keep in mind that calling this function two times with a different * composables as parameter won't make those composables share the state. * @param composables a composable or an array of composables * @returns { composableWrapper } a composableWrapper object containing the values returned by the composables */ export declare function createTestComposable(composables: Composable | Composable[], globalConfig?: PartialGlobalConfig): { composableWrapper: Record<string, any>; };