-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.d.ts
44 lines (41 loc) · 1.21 KB
/
global.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
import { Browser } from 'playwright';
import exportExpect, { Matchers } from 'expect';
declare global {
type ExportExpect = typeof exportExpect;
interface Expect extends ExportExpect {
/**
* The `expect` function is used every time you want to test a value.
* You will rarely call `expect` by itself.
*
* Examples:
* weExpect('end-to-end', `this repository's name is end-to-end.`).toEqual('manabie.com')
*
* @param actual The value to apply matchers against.
* @param message Clarification message
*
*/
<T = any>(actual: T, message?: string): Matchers<T>;
}
namespace NodeJS {
interface Global {
weExpect: Expect;
_cucumber: {
timeout: number;
counter: number;
browser: Browser;
skipAll: boolean;
durationLimit: number;
startTime: number;
};
}
}
const weExpect: Expect;
const _cucumber: {
timeout: number;
counter: number;
browser: Browser;
skipAll: boolean;
durationLimit: number;
startTime: number;
};
}