@inkline/inkline
Version:
Inkline is the Vue.js UI/UX Library built for creating your next design system
20 lines (19 loc) • 652 B
TypeScript
interface MockInstanceOptions {
data?: Record<string, any>;
props?: Record<string, any>;
computed?: Record<string, any>;
methods?: Record<string, any>;
inject?: Record<string, any>;
mocks?: Record<string, any>;
$el?: HTMLElement;
$refs?: Record<string, HTMLElement>;
}
/**
* Simulates a Vue instance with props, methods, data and computed properties
* for scenarios that cannot be tested using testing-library.
*
* @param component
* @param options
*/
export declare const createMockInstance: (component: any, { inject, data, props, computed, methods, mocks, $el, $refs }?: MockInstanceOptions) => any;
export {};