forked from nightwatchjs/nightwatch-plugin-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
24 lines (22 loc) · 766 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { NightwatchAPI, Element } from 'nightwatch';
import { MountingOptions } from '@vue/test-utils';
type GlobalMountOptions = NonNullable<MountingOptions<any>['global']>;
declare module 'nightwatch' {
interface NightwatchAPI {
importScript(
scriptPath: string,
options: { scriptType: string; componentType: string },
callback?: () => void
): this;
mountComponent(
componentPath: string,
options?: {
props?: MountingOptions<Record<string, any>>['props'];
plugin?: Pick<GlobalMountOptions, 'plugins'>;
mocks?: Pick<GlobalMountOptions, 'mocks'>;
},
callback?: (this: NightwatchAPI, result: Element) => void
): Awaitable<this, Element>;
launchComponentRenderer(): this;
}
}