/
customReporters.test.ts.snap
146 lines (135 loc) · 2.89 KB
/
customReporters.test.ts.snap
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Custom Reporters Integration IncompleteReporter for flexibility 1`] = `
onRunComplete is called
Passed Tests: 1
Failed Tests: 0
Total Tests: 1
`;
exports[`Custom Reporters Integration TestReporter with all tests failing 1`] = `
Object {
"onRunComplete": Object {
"called": true,
"numFailedTests": 1,
"numPassedTests": 0,
"numTotalTests": 1,
},
"onRunStart": Object {
"called": true,
"options": "object",
},
"onTestResult": Object {
"called": true,
"times": 1,
},
"onTestStart": Object {
"called": true,
"path": false,
},
"options": Object {
"christoph": "pojer",
"dmitrii": "abramov",
"hello": "world",
},
}
`;
exports[`Custom Reporters Integration TestReporter with all tests passing 1`] = `
Object {
"onRunComplete": Object {
"called": true,
"numFailedTests": 0,
"numPassedTests": 1,
"numTotalTests": 1,
},
"onRunStart": Object {
"called": true,
"options": "object",
},
"onTestResult": Object {
"called": true,
"times": 1,
},
"onTestStart": Object {
"called": true,
"path": false,
},
"options": Object {
"christoph": "pojer",
"dmitrii": "abramov",
"hello": "world",
},
}
`;
exports[`Custom Reporters Integration default reporters enabled 1`] = `
PASS __tests__/add.test.js
Custom Reporters
✓ adds ok
`;
exports[`Custom Reporters Integration default reporters enabled 2`] = `
Test Suites: 1 passed, 1 total
Tests: 1 passed, 1 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites matching /add.test.js/i.
`;
exports[`Custom Reporters Integration default reporters enabled 3`] = `
Object {
"onRunComplete": Object {
"called": true,
"numFailedTests": 0,
"numPassedTests": 1,
"numTotalTests": 1,
},
"onRunStart": Object {
"called": true,
"options": "object",
},
"onTestResult": Object {
"called": true,
"times": 1,
},
"onTestStart": Object {
"called": true,
"path": false,
},
"options": Object {},
}
`;
exports[`Custom Reporters Integration invalid format for adding reporters 1`] = `
● Reporter Validation Error:
Unexpected value for Path at index 0 of reporter at index 0
Expected:
string
Got:
number
Reporter configuration:
[
3243242
]
Configuration Documentation:
https://jestjs.io/docs/configuration.html
`;
exports[`Custom Reporters Integration valid array format for adding reporters 1`] = `
{
"onRunComplete": {
"called": true,
"numPassedTests": 1,
"numFailedTests": 0,
"numTotalTests": 1
},
"onRunStart": {
"called": true,
"options": "object"
},
"onTestResult": {
"times": 1,
"called": true
},
"onTestStart": {
"called": true,
"path": false
},
"options": {
"Aaron Abramov": "Awesome"
}
}
`;