-
-
Notifications
You must be signed in to change notification settings - Fork 179
/
Copy pathJestMatchers.ts
37 lines (35 loc) · 1.03 KB
/
JestMatchers.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
const jestMatchers: string[] = [
'',
'to Be',
'to Equal (object)',
'to Have Been Called',
'to Have Been Called Times (number)',
'to Have Been Called With (arg1,...)',
'to Have Been Last Called With (arg1,...)',
'to Have Been Nth Called With (nth call, arg1,...)',
'to Have Length (number)',
'to Have Property (keyPath, value[optional])',
'to Be Close To (number, number of digits[optional])',
'to Be Defined',
'to Be Undefined',
'to Be Falsy',
'to Be Truthy',
'to Be NaN',
'to Be Greater Than (number)',
'to Be Greater Than Or Equal (number)',
'to Be Less Than (number)',
'to Be Less Than Or Equal (number)',
'to Be Instance Of (Class)',
'to Contain (item in an array)',
'to Contain Equal (an object in an array)',
'to Match (regexp or string)',
'to Match Object (object)',
'to Srict Equal (object)',
'to Throw (error[optional])',
];
//for mock fuctions only:
// 'to Have Returned',
// 'to Have Returned __ Times (number)',
// 'to Have Last Returned With',
// ];
export default jestMatchers;