-
Notifications
You must be signed in to change notification settings - Fork 39
/
index.internal.d.ts
49 lines (40 loc) · 1.01 KB
/
index.internal.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* This file used for internally adding types to package interfaces that are not
* documented by the package (not included in the package's types).
*/
declare namespace Cypress {
interface Cypress {
onSpecReady(...args: any[]): void;
mocha: {
getRunner(): Mocha.Runner;
getRootSuite(): Mocha.Suite;
};
state(key: 'done', callback: (error: Error) => Promise<void>): void;
state(key: 'error', error: Error): void;
}
interface Chainable<Subject = any> extends Pick<Promise<Subject>, 'catch'> {}
}
declare namespace Mocha {
interface InvocationDetails {
relativeFile?: string;
fileUrl?: string;
}
interface Hook {
hookName: string;
_ctr_hook: boolean;
}
interface Runnable {
hookName: string;
invocationDetails: InvocationDetails;
id: string;
order: unknown;
wallClockStartedAt: unknown;
timings: unknown;
}
interface Suite {
invocationDetails: InvocationDetails;
}
interface Test {
failedFromHookId?: unknown;
}
}