Skip to content

Commit a5385a4

Browse files
authoredMay 2, 2020
Use configured depth limit for diffs in assertion failures
1 parent 7df4397 commit a5385a4

15 files changed

+598
-211
lines changed
 

‎lib/assert.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ const concordance = require('concordance');
33
const isError = require('is-error');
44
const isPromise = require('is-promise');
55
const concordanceOptions = require('./concordance-options').default;
6-
const concordanceDiffOptions = require('./concordance-options').diff;
76
const snapshotManager = require('./snapshot-manager');
87

98
function formatDescriptorDiff(actualDescriptor, expectedDescriptor, options) {
10-
options = {...options, ...concordanceDiffOptions};
9+
options = {...options, ...concordanceOptions};
1110
return {
1211
label: 'Difference:',
1312
formatted: concordance.diffDescriptors(actualDescriptor, expectedDescriptor, options)

‎lib/concordance-options.js

-1
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,4 @@ exports.default = {
135135
theme
136136
};
137137

138-
exports.diff = {maxDepth: 1, plugins, theme};
139138
exports.snapshotManager = {plugins, theme: plainTheme};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const test = require('../../../..');
2+
const util = require('util');
3+
4+
util.inspect.defaultOptions.depth = 4;
5+
6+
test('format with max depth 4', t => {
7+
const exp = {
8+
a: {
9+
b: {
10+
foo: 'bar'
11+
}
12+
}
13+
};
14+
const act = {
15+
a: {
16+
b: {
17+
foo: 'bar'
18+
}
19+
},
20+
c: {
21+
d: {
22+
e: {
23+
foo: 'bar'
24+
}
25+
}
26+
}
27+
};
28+
t.deepEqual(exp, act);
29+
});

‎test-tap/reporters/mini.regular.v10.log

+57-22
Original file line numberDiff line numberDiff line change
@@ -3,161 +3,166 @@
33
---tty-stream-chunk-separator
44
* ---tty-stream-chunk-separator
55
---tty-stream-chunk-separator
6-
* output-in-hook › passing test
6+
* nested-objects › format with max depth 4
77

8-
1 passed---tty-stream-chunk-separator
8+
1 test failed---tty-stream-chunk-separator
99
---tty-stream-chunk-separator
10-
* output-in-hook › failing test
10+
* output-in-hook › passing test
1111

1212
1 passed
1313
1 test failed---tty-stream-chunk-separator
1414
---tty-stream-chunk-separator
15+
* output-in-hook › failing test
16+
17+
1 passed
18+
2 tests failed---tty-stream-chunk-separator
19+
---tty-stream-chunk-separator
1520
* test › passes
1621

1722
2 passed
18-
1 test failed
23+
2 tests failed
1924
1 skipped
2025
1 todo---tty-stream-chunk-separator
2126
---tty-stream-chunk-separator
2227
* test › fails
2328

2429
2 passed
25-
2 tests failed
30+
3 tests failed
2631
1 skipped
2732
1 todo---tty-stream-chunk-separator
2833
---tty-stream-chunk-separator
2934
* test › known failure
3035

3136
2 passed
3237
1 known failure
33-
2 tests failed
38+
3 tests failed
3439
1 skipped
3540
1 todo---tty-stream-chunk-separator
3641
---tty-stream-chunk-separator
3742
* test › no longer failing
3843

3944
2 passed
4045
1 known failure
41-
3 tests failed
46+
4 tests failed
4247
1 skipped
4348
1 todo---tty-stream-chunk-separator
4449
---tty-stream-chunk-separator
4550
* test › logs
4651

4752
2 passed
4853
1 known failure
49-
4 tests failed
54+
5 tests failed
5055
1 skipped
5156
1 todo---tty-stream-chunk-separator
5257
---tty-stream-chunk-separator
5358
* test › formatted
5459

5560
2 passed
5661
1 known failure
57-
5 tests failed
62+
6 tests failed
5863
1 skipped
5964
1 todo---tty-stream-chunk-separator
6065
---tty-stream-chunk-separator
6166
* test › power-assert
6267

6368
2 passed
6469
1 known failure
65-
6 tests failed
70+
7 tests failed
6671
1 skipped
6772
1 todo---tty-stream-chunk-separator
6873
---tty-stream-chunk-separator
6974
* test › bad throws
7075

7176
2 passed
7277
1 known failure
73-
7 tests failed
78+
8 tests failed
7479
1 skipped
7580
1 todo---tty-stream-chunk-separator
7681
---tty-stream-chunk-separator
7782
* test › bad notThrows
7883

7984
2 passed
8085
1 known failure
81-
8 tests failed
86+
9 tests failed
8287
1 skipped
8388
1 todo---tty-stream-chunk-separator
8489
---tty-stream-chunk-separator
8590
* test › implementation throws non-error
8691

8792
2 passed
8893
1 known failure
89-
9 tests failed
94+
10 tests failed
9095
1 skipped
9196
1 todo---tty-stream-chunk-separator
9297
---tty-stream-chunk-separator
9398
* traces-in-t-throws › throws
9499

95100
2 passed
96101
1 known failure
97-
10 tests failed
102+
11 tests failed
98103
1 skipped
99104
1 todo---tty-stream-chunk-separator
100105
---tty-stream-chunk-separator
101106
* traces-in-t-throws › notThrows
102107

103108
2 passed
104109
1 known failure
105-
11 tests failed
110+
12 tests failed
106111
1 skipped
107112
1 todo---tty-stream-chunk-separator
108113
---tty-stream-chunk-separator
109114
* traces-in-t-throws › notThrowsAsync
110115

111116
2 passed
112117
1 known failure
113-
12 tests failed
118+
13 tests failed
114119
1 skipped
115120
1 todo---tty-stream-chunk-separator
116121
---tty-stream-chunk-separator
117122
* traces-in-t-throws › throwsAsync
118123

119124
2 passed
120125
1 known failure
121-
13 tests failed
126+
14 tests failed
122127
1 skipped
123128
1 todo---tty-stream-chunk-separator
124129
---tty-stream-chunk-separator
125130
* traces-in-t-throws › throwsAsync different error
126131

127132
2 passed
128133
1 known failure
129-
14 tests failed
134+
15 tests failed
130135
1 skipped
131136
1 todo---tty-stream-chunk-separator
132137
---tty-stream-chunk-separator
133138
* uncaught-exception › passes
134139

135140
3 passed
136141
1 known failure
137-
14 tests failed
142+
15 tests failed
138143
1 skipped
139144
1 todo---tty-stream-chunk-separator
140145
---tty-stream-chunk-separator
141146
* unhandled-rejection › passes
142147

143148
4 passed
144149
1 known failure
145-
14 tests failed
150+
15 tests failed
146151
1 skipped
147152
1 todo---tty-stream-chunk-separator
148153
---tty-stream-chunk-separator
149154
* unhandled-rejection › unhandled non-error rejection
150155

151156
5 passed
152157
1 known failure
153-
14 tests failed
158+
15 tests failed
154159
1 skipped
155160
1 todo---tty-stream-chunk-separator
156161
---tty-stream-chunk-separator
157162
[?25h
158163
✖ No tests found in bad-test-chain.js
159164

160-
14 tests failed
165+
15 tests failed
161166
1 known failure
162167
1 test skipped
163168
1 test todo
@@ -166,6 +171,36 @@
166171

167172
test › known failure
168173

174+
nested-objects › format with max depth 4
175+
176+
nested-objects.js:28
177+
178+
27: };
179+
 28: t.deepEqual(exp, act);
180+
29: });
181+
182+
Difference:
183+
184+
{
185+
a: {
186+
b: {
187+
foo: 'bar',
188+
},
189+
},
190+
+ c: {
191+
+ d: {
192+
+ e: {
193+
+ foo: 'bar',
194+
+ },
195+
+ },
196+
+ },
197+
}
198+
199+
› t (test-tap/fixture/report/regular/nested-objects.js:28:4)
200+
› process._tickCallback (internal/process/next_tick.js:68:7)
201+
202+
203+
169204
output-in-hook › failing test
170205

171206
output-in-hook.js:34

‎test-tap/reporters/mini.regular.v12.log

+56-22
Original file line numberDiff line numberDiff line change
@@ -3,161 +3,166 @@
33
---tty-stream-chunk-separator
44
* ---tty-stream-chunk-separator
55
---tty-stream-chunk-separator
6-
* output-in-hook › passing test
6+
* nested-objects › format with max depth 4
77

8-
1 passed---tty-stream-chunk-separator
8+
1 test failed---tty-stream-chunk-separator
99
---tty-stream-chunk-separator
10-
* output-in-hook › failing test
10+
* output-in-hook › passing test
1111

1212
1 passed
1313
1 test failed---tty-stream-chunk-separator
1414
---tty-stream-chunk-separator
15+
* output-in-hook › failing test
16+
17+
1 passed
18+
2 tests failed---tty-stream-chunk-separator
19+
---tty-stream-chunk-separator
1520
* test › passes
1621

1722
2 passed
18-
1 test failed
23+
2 tests failed
1924
1 skipped
2025
1 todo---tty-stream-chunk-separator
2126
---tty-stream-chunk-separator
2227
* test › fails
2328

2429
2 passed
25-
2 tests failed
30+
3 tests failed
2631
1 skipped
2732
1 todo---tty-stream-chunk-separator
2833
---tty-stream-chunk-separator
2934
* test › known failure
3035

3136
2 passed
3237
1 known failure
33-
2 tests failed
38+
3 tests failed
3439
1 skipped
3540
1 todo---tty-stream-chunk-separator
3641
---tty-stream-chunk-separator
3742
* test › no longer failing
3843

3944
2 passed
4045
1 known failure
41-
3 tests failed
46+
4 tests failed
4247
1 skipped
4348
1 todo---tty-stream-chunk-separator
4449
---tty-stream-chunk-separator
4550
* test › logs
4651

4752
2 passed
4853
1 known failure
49-
4 tests failed
54+
5 tests failed
5055
1 skipped
5156
1 todo---tty-stream-chunk-separator
5257
---tty-stream-chunk-separator
5358
* test › formatted
5459

5560
2 passed
5661
1 known failure
57-
5 tests failed
62+
6 tests failed
5863
1 skipped
5964
1 todo---tty-stream-chunk-separator
6065
---tty-stream-chunk-separator
6166
* test › power-assert
6267

6368
2 passed
6469
1 known failure
65-
6 tests failed
70+
7 tests failed
6671
1 skipped
6772
1 todo---tty-stream-chunk-separator
6873
---tty-stream-chunk-separator
6974
* test › bad throws
7075

7176
2 passed
7277
1 known failure
73-
7 tests failed
78+
8 tests failed
7479
1 skipped
7580
1 todo---tty-stream-chunk-separator
7681
---tty-stream-chunk-separator
7782
* test › bad notThrows
7883

7984
2 passed
8085
1 known failure
81-
8 tests failed
86+
9 tests failed
8287
1 skipped
8388
1 todo---tty-stream-chunk-separator
8489
---tty-stream-chunk-separator
8590
* test › implementation throws non-error
8691

8792
2 passed
8893
1 known failure
89-
9 tests failed
94+
10 tests failed
9095
1 skipped
9196
1 todo---tty-stream-chunk-separator
9297
---tty-stream-chunk-separator
9398
* traces-in-t-throws › throws
9499

95100
2 passed
96101
1 known failure
97-
10 tests failed
102+
11 tests failed
98103
1 skipped
99104
1 todo---tty-stream-chunk-separator
100105
---tty-stream-chunk-separator
101106
* traces-in-t-throws › notThrows
102107

103108
2 passed
104109
1 known failure
105-
11 tests failed
110+
12 tests failed
106111
1 skipped
107112
1 todo---tty-stream-chunk-separator
108113
---tty-stream-chunk-separator
109114
* traces-in-t-throws › notThrowsAsync
110115

111116
2 passed
112117
1 known failure
113-
12 tests failed
118+
13 tests failed
114119
1 skipped
115120
1 todo---tty-stream-chunk-separator
116121
---tty-stream-chunk-separator
117122
* traces-in-t-throws › throwsAsync
118123

119124
2 passed
120125
1 known failure
121-
13 tests failed
126+
14 tests failed
122127
1 skipped
123128
1 todo---tty-stream-chunk-separator
124129
---tty-stream-chunk-separator
125130
* traces-in-t-throws › throwsAsync different error
126131

127132
2 passed
128133
1 known failure
129-
14 tests failed
134+
15 tests failed
130135
1 skipped
131136
1 todo---tty-stream-chunk-separator
132137
---tty-stream-chunk-separator
133138
* uncaught-exception › passes
134139

135140
3 passed
136141
1 known failure
137-
14 tests failed
142+
15 tests failed
138143
1 skipped
139144
1 todo---tty-stream-chunk-separator
140145
---tty-stream-chunk-separator
141146
* unhandled-rejection › passes
142147

143148
4 passed
144149
1 known failure
145-
14 tests failed
150+
15 tests failed
146151
1 skipped
147152
1 todo---tty-stream-chunk-separator
148153
---tty-stream-chunk-separator
149154
* unhandled-rejection › unhandled non-error rejection
150155

151156
5 passed
152157
1 known failure
153-
14 tests failed
158+
15 tests failed
154159
1 skipped
155160
1 todo---tty-stream-chunk-separator
156161
---tty-stream-chunk-separator
157162
[?25h
158163
✖ No tests found in bad-test-chain.js
159164

160-
14 tests failed
165+
15 tests failed
161166
1 known failure
162167
1 test skipped
163168
1 test todo
@@ -166,6 +171,35 @@
166171

167172
test › known failure
168173

174+
nested-objects › format with max depth 4
175+
176+
nested-objects.js:28
177+
178+
27: };
179+
 28: t.deepEqual(exp, act);
180+
29: });
181+
182+
Difference:
183+
184+
{
185+
a: {
186+
b: {
187+
foo: 'bar',
188+
},
189+
},
190+
+ c: {
191+
+ d: {
192+
+ e: {
193+
+ foo: 'bar',
194+
+ },
195+
+ },
196+
+ },
197+
}
198+
199+
› test-tap/fixture/report/regular/nested-objects.js:28:4
200+
201+
202+
169203
output-in-hook › failing test
170204

171205
output-in-hook.js:34

‎test-tap/reporters/mini.regular.v13.log

+56-22
Original file line numberDiff line numberDiff line change
@@ -3,161 +3,166 @@
33
---tty-stream-chunk-separator
44
* ---tty-stream-chunk-separator
55
---tty-stream-chunk-separator
6-
* output-in-hook › passing test
6+
* nested-objects › format with max depth 4
77

8-
1 passed---tty-stream-chunk-separator
8+
1 test failed---tty-stream-chunk-separator
99
---tty-stream-chunk-separator
10-
* output-in-hook › failing test
10+
* output-in-hook › passing test
1111

1212
1 passed
1313
1 test failed---tty-stream-chunk-separator
1414
---tty-stream-chunk-separator
15+
* output-in-hook › failing test
16+
17+
1 passed
18+
2 tests failed---tty-stream-chunk-separator
19+
---tty-stream-chunk-separator
1520
* test › passes
1621

1722
2 passed
18-
1 test failed
23+
2 tests failed
1924
1 skipped
2025
1 todo---tty-stream-chunk-separator
2126
---tty-stream-chunk-separator
2227
* test › fails
2328

2429
2 passed
25-
2 tests failed
30+
3 tests failed
2631
1 skipped
2732
1 todo---tty-stream-chunk-separator
2833
---tty-stream-chunk-separator
2934
* test › known failure
3035

3136
2 passed
3237
1 known failure
33-
2 tests failed
38+
3 tests failed
3439
1 skipped
3540
1 todo---tty-stream-chunk-separator
3641
---tty-stream-chunk-separator
3742
* test › no longer failing
3843

3944
2 passed
4045
1 known failure
41-
3 tests failed
46+
4 tests failed
4247
1 skipped
4348
1 todo---tty-stream-chunk-separator
4449
---tty-stream-chunk-separator
4550
* test › logs
4651

4752
2 passed
4853
1 known failure
49-
4 tests failed
54+
5 tests failed
5055
1 skipped
5156
1 todo---tty-stream-chunk-separator
5257
---tty-stream-chunk-separator
5358
* test › formatted
5459

5560
2 passed
5661
1 known failure
57-
5 tests failed
62+
6 tests failed
5863
1 skipped
5964
1 todo---tty-stream-chunk-separator
6065
---tty-stream-chunk-separator
6166
* test › power-assert
6267

6368
2 passed
6469
1 known failure
65-
6 tests failed
70+
7 tests failed
6671
1 skipped
6772
1 todo---tty-stream-chunk-separator
6873
---tty-stream-chunk-separator
6974
* test › bad throws
7075

7176
2 passed
7277
1 known failure
73-
7 tests failed
78+
8 tests failed
7479
1 skipped
7580
1 todo---tty-stream-chunk-separator
7681
---tty-stream-chunk-separator
7782
* test › bad notThrows
7883

7984
2 passed
8085
1 known failure
81-
8 tests failed
86+
9 tests failed
8287
1 skipped
8388
1 todo---tty-stream-chunk-separator
8489
---tty-stream-chunk-separator
8590
* test › implementation throws non-error
8691

8792
2 passed
8893
1 known failure
89-
9 tests failed
94+
10 tests failed
9095
1 skipped
9196
1 todo---tty-stream-chunk-separator
9297
---tty-stream-chunk-separator
9398
* traces-in-t-throws › throws
9499

95100
2 passed
96101
1 known failure
97-
10 tests failed
102+
11 tests failed
98103
1 skipped
99104
1 todo---tty-stream-chunk-separator
100105
---tty-stream-chunk-separator
101106
* traces-in-t-throws › notThrows
102107

103108
2 passed
104109
1 known failure
105-
11 tests failed
110+
12 tests failed
106111
1 skipped
107112
1 todo---tty-stream-chunk-separator
108113
---tty-stream-chunk-separator
109114
* traces-in-t-throws › notThrowsAsync
110115

111116
2 passed
112117
1 known failure
113-
12 tests failed
118+
13 tests failed
114119
1 skipped
115120
1 todo---tty-stream-chunk-separator
116121
---tty-stream-chunk-separator
117122
* traces-in-t-throws › throwsAsync
118123

119124
2 passed
120125
1 known failure
121-
13 tests failed
126+
14 tests failed
122127
1 skipped
123128
1 todo---tty-stream-chunk-separator
124129
---tty-stream-chunk-separator
125130
* traces-in-t-throws › throwsAsync different error
126131

127132
2 passed
128133
1 known failure
129-
14 tests failed
134+
15 tests failed
130135
1 skipped
131136
1 todo---tty-stream-chunk-separator
132137
---tty-stream-chunk-separator
133138
* uncaught-exception › passes
134139

135140
3 passed
136141
1 known failure
137-
14 tests failed
142+
15 tests failed
138143
1 skipped
139144
1 todo---tty-stream-chunk-separator
140145
---tty-stream-chunk-separator
141146
* unhandled-rejection › passes
142147

143148
4 passed
144149
1 known failure
145-
14 tests failed
150+
15 tests failed
146151
1 skipped
147152
1 todo---tty-stream-chunk-separator
148153
---tty-stream-chunk-separator
149154
* unhandled-rejection › unhandled non-error rejection
150155

151156
5 passed
152157
1 known failure
153-
14 tests failed
158+
15 tests failed
154159
1 skipped
155160
1 todo---tty-stream-chunk-separator
156161
---tty-stream-chunk-separator
157162
[?25h
158163
✖ No tests found in bad-test-chain.js
159164

160-
14 tests failed
165+
15 tests failed
161166
1 known failure
162167
1 test skipped
163168
1 test todo
@@ -166,6 +171,35 @@
166171

167172
test › known failure
168173

174+
nested-objects › format with max depth 4
175+
176+
nested-objects.js:28
177+
178+
27: };
179+
 28: t.deepEqual(exp, act);
180+
29: });
181+
182+
Difference:
183+
184+
{
185+
a: {
186+
b: {
187+
foo: 'bar',
188+
},
189+
},
190+
+ c: {
191+
+ d: {
192+
+ e: {
193+
+ foo: 'bar',
194+
+ },
195+
+ },
196+
+ },
197+
}
198+
199+
› test-tap/fixture/report/regular/nested-objects.js:28:4
200+
201+
202+
169203
output-in-hook › failing test
170204

171205
output-in-hook.js:34

‎test-tap/reporters/mini.regular.v14.log

+56-22
Original file line numberDiff line numberDiff line change
@@ -3,161 +3,166 @@
33
---tty-stream-chunk-separator
44
* ---tty-stream-chunk-separator
55
---tty-stream-chunk-separator
6-
* output-in-hook › passing test
6+
* nested-objects › format with max depth 4
77

8-
1 passed---tty-stream-chunk-separator
8+
1 test failed---tty-stream-chunk-separator
99
---tty-stream-chunk-separator
10-
* output-in-hook › failing test
10+
* output-in-hook › passing test
1111

1212
1 passed
1313
1 test failed---tty-stream-chunk-separator
1414
---tty-stream-chunk-separator
15+
* output-in-hook › failing test
16+
17+
1 passed
18+
2 tests failed---tty-stream-chunk-separator
19+
---tty-stream-chunk-separator
1520
* test › passes
1621

1722
2 passed
18-
1 test failed
23+
2 tests failed
1924
1 skipped
2025
1 todo---tty-stream-chunk-separator
2126
---tty-stream-chunk-separator
2227
* test › fails
2328

2429
2 passed
25-
2 tests failed
30+
3 tests failed
2631
1 skipped
2732
1 todo---tty-stream-chunk-separator
2833
---tty-stream-chunk-separator
2934
* test › known failure
3035

3136
2 passed
3237
1 known failure
33-
2 tests failed
38+
3 tests failed
3439
1 skipped
3540
1 todo---tty-stream-chunk-separator
3641
---tty-stream-chunk-separator
3742
* test › no longer failing
3843

3944
2 passed
4045
1 known failure
41-
3 tests failed
46+
4 tests failed
4247
1 skipped
4348
1 todo---tty-stream-chunk-separator
4449
---tty-stream-chunk-separator
4550
* test › logs
4651

4752
2 passed
4853
1 known failure
49-
4 tests failed
54+
5 tests failed
5055
1 skipped
5156
1 todo---tty-stream-chunk-separator
5257
---tty-stream-chunk-separator
5358
* test › formatted
5459

5560
2 passed
5661
1 known failure
57-
5 tests failed
62+
6 tests failed
5863
1 skipped
5964
1 todo---tty-stream-chunk-separator
6065
---tty-stream-chunk-separator
6166
* test › power-assert
6267

6368
2 passed
6469
1 known failure
65-
6 tests failed
70+
7 tests failed
6671
1 skipped
6772
1 todo---tty-stream-chunk-separator
6873
---tty-stream-chunk-separator
6974
* test › bad throws
7075

7176
2 passed
7277
1 known failure
73-
7 tests failed
78+
8 tests failed
7479
1 skipped
7580
1 todo---tty-stream-chunk-separator
7681
---tty-stream-chunk-separator
7782
* test › bad notThrows
7883

7984
2 passed
8085
1 known failure
81-
8 tests failed
86+
9 tests failed
8287
1 skipped
8388
1 todo---tty-stream-chunk-separator
8489
---tty-stream-chunk-separator
8590
* test › implementation throws non-error
8691

8792
2 passed
8893
1 known failure
89-
9 tests failed
94+
10 tests failed
9095
1 skipped
9196
1 todo---tty-stream-chunk-separator
9297
---tty-stream-chunk-separator
9398
* traces-in-t-throws › throws
9499

95100
2 passed
96101
1 known failure
97-
10 tests failed
102+
11 tests failed
98103
1 skipped
99104
1 todo---tty-stream-chunk-separator
100105
---tty-stream-chunk-separator
101106
* traces-in-t-throws › notThrows
102107

103108
2 passed
104109
1 known failure
105-
11 tests failed
110+
12 tests failed
106111
1 skipped
107112
1 todo---tty-stream-chunk-separator
108113
---tty-stream-chunk-separator
109114
* traces-in-t-throws › notThrowsAsync
110115

111116
2 passed
112117
1 known failure
113-
12 tests failed
118+
13 tests failed
114119
1 skipped
115120
1 todo---tty-stream-chunk-separator
116121
---tty-stream-chunk-separator
117122
* traces-in-t-throws › throwsAsync
118123

119124
2 passed
120125
1 known failure
121-
13 tests failed
126+
14 tests failed
122127
1 skipped
123128
1 todo---tty-stream-chunk-separator
124129
---tty-stream-chunk-separator
125130
* traces-in-t-throws › throwsAsync different error
126131

127132
2 passed
128133
1 known failure
129-
14 tests failed
134+
15 tests failed
130135
1 skipped
131136
1 todo---tty-stream-chunk-separator
132137
---tty-stream-chunk-separator
133138
* uncaught-exception › passes
134139

135140
3 passed
136141
1 known failure
137-
14 tests failed
142+
15 tests failed
138143
1 skipped
139144
1 todo---tty-stream-chunk-separator
140145
---tty-stream-chunk-separator
141146
* unhandled-rejection › passes
142147

143148
4 passed
144149
1 known failure
145-
14 tests failed
150+
15 tests failed
146151
1 skipped
147152
1 todo---tty-stream-chunk-separator
148153
---tty-stream-chunk-separator
149154
* unhandled-rejection › unhandled non-error rejection
150155

151156
5 passed
152157
1 known failure
153-
14 tests failed
158+
15 tests failed
154159
1 skipped
155160
1 todo---tty-stream-chunk-separator
156161
---tty-stream-chunk-separator
157162
[?25h
158163
✖ No tests found in bad-test-chain.js
159164

160-
14 tests failed
165+
15 tests failed
161166
1 known failure
162167
1 test skipped
163168
1 test todo
@@ -166,6 +171,35 @@
166171

167172
test › known failure
168173

174+
nested-objects › format with max depth 4
175+
176+
nested-objects.js:28
177+
178+
27: };
179+
 28: t.deepEqual(exp, act);
180+
29: });
181+
182+
Difference:
183+
184+
{
185+
a: {
186+
b: {
187+
foo: 'bar',
188+
},
189+
},
190+
+ c: {
191+
+ d: {
192+
+ e: {
193+
+ foo: 'bar',
194+
+ },
195+
+ },
196+
+ },
197+
}
198+
199+
› test-tap/fixture/report/regular/nested-objects.js:28:4
200+
201+
202+
169203
output-in-hook › failing test
170204

171205
output-in-hook.js:34

‎test-tap/reporters/tap.regular.v10.log

+55-29
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,32 @@ not ok 1 - TypeError: test.serial.test is not a function
1111
# bad-test-chain.js exited with a non-zero exit code: 1
1212
not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1
1313
---tty-stream-chunk-separator
14+
# nested-objects › format with max depth 4
15+
not ok 3 - nested-objects › format with max depth 4
16+
---
17+
name: AssertionError
18+
assertion: deepEqual
19+
values:
20+
'Difference:': |2-
21+
{
22+
a: {
23+
b: {
24+
foo: 'bar',
25+
},
26+
},
27+
+ c: {
28+
+ d: {
29+
+ e: {
30+
+ foo: 'bar',
31+
+ },
32+
+ },
33+
+ },
34+
}
35+
at: |-
36+
t (test-tap/fixture/report/regular/nested-objects.js:28:4)
37+
process._tickCallback (internal/process/next_tick.js:68:7)
38+
...
39+
---tty-stream-chunk-separator
1440
# output-in-hook › before hook
1541
---tty-stream-chunk-separator
1642
# output-in-hook › before hook
@@ -26,10 +52,10 @@ not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1
2652
# beforeEach
2753
---tty-stream-chunk-separator
2854
# output-in-hook › passing test
29-
ok 3 - output-in-hook › passing test
55+
ok 4 - output-in-hook › passing test
3056
---tty-stream-chunk-separator
3157
# output-in-hook › failing test
32-
not ok 4 - output-in-hook › failing test
58+
not ok 5 - output-in-hook › failing test
3359
---
3460
name: AssertionError
3561
message: Test failed via `t.fail()`
@@ -56,16 +82,16 @@ not ok 4 - output-in-hook › failing test
5682
# afterAlways
5783
---tty-stream-chunk-separator
5884
# test › skip
59-
ok 5 - test › skip # SKIP
85+
ok 6 - test › skip # SKIP
6086
---tty-stream-chunk-separator
6187
# test › todo
62-
not ok 6 - test › todo # TODO
88+
not ok 7 - test › todo # TODO
6389
---tty-stream-chunk-separator
6490
# test › passes
65-
ok 7 - test › passes
91+
ok 8 - test › passes
6692
---tty-stream-chunk-separator
6793
# test › fails
68-
not ok 8 - test › fails
94+
not ok 9 - test › fails
6995
---
7096
name: AssertionError
7197
message: Test failed via `t.fail()`
@@ -76,10 +102,10 @@ not ok 8 - test › fails
76102
...
77103
---tty-stream-chunk-separator
78104
# test › known failure
79-
ok 9 - test › known failure
105+
ok 10 - test › known failure
80106
---tty-stream-chunk-separator
81107
# test › no longer failing
82-
not ok 10 - test › no longer failing
108+
not ok 11 - test › no longer failing
83109
---
84110
name: Error
85111
message: >-
@@ -89,7 +115,7 @@ not ok 10 - test › no longer failing
89115
...
90116
---tty-stream-chunk-separator
91117
# test › logs
92-
not ok 11 - test › logs
118+
not ok 12 - test › logs
93119
* hello
94120
* world
95121
---
@@ -102,7 +128,7 @@ not ok 11 - test › logs
102128
...
103129
---tty-stream-chunk-separator
104130
# test › formatted
105-
not ok 12 - test › formatted
131+
not ok 13 - test › formatted
106132
---
107133
name: AssertionError
108134
assertion: deepEqual
@@ -116,7 +142,7 @@ not ok 12 - test › formatted
116142
...
117143
---tty-stream-chunk-separator
118144
# test › power-assert
119-
not ok 13 - test › power-assert
145+
not ok 14 - test › power-assert
120146
---
121147
name: AssertionError
122148
assertion: assert
@@ -129,7 +155,7 @@ not ok 13 - test › power-assert
129155
...
130156
---tty-stream-chunk-separator
131157
# test › bad throws
132-
not ok 14 - test › bad throws
158+
not ok 15 - test › bad throws
133159
---
134160
name: AssertionError
135161
message: Improper usage of `t.throws()` detected
@@ -146,7 +172,7 @@ not ok 14 - test › bad throws
146172
...
147173
---tty-stream-chunk-separator
148174
# test › bad notThrows
149-
not ok 15 - test › bad notThrows
175+
not ok 16 - test › bad notThrows
150176
---
151177
name: AssertionError
152178
message: Improper usage of `t.notThrows()` detected
@@ -163,7 +189,7 @@ not ok 15 - test › bad notThrows
163189
...
164190
---tty-stream-chunk-separator
165191
# test › implementation throws non-error
166-
not ok 16 - test › implementation throws non-error
192+
not ok 17 - test › implementation throws non-error
167193
---
168194
name: AssertionError
169195
message: Error thrown in test
@@ -173,7 +199,7 @@ not ok 16 - test › implementation throws non-error
173199
...
174200
---tty-stream-chunk-separator
175201
# traces-in-t-throws › throws
176-
not ok 17 - traces-in-t-throws › throws
202+
not ok 18 - traces-in-t-throws › throws
177203
---
178204
name: AssertionError
179205
assertion: throws
@@ -195,7 +221,7 @@ not ok 17 - traces-in-t-throws › throws
195221
...
196222
---tty-stream-chunk-separator
197223
# traces-in-t-throws › notThrows
198-
not ok 18 - traces-in-t-throws › notThrows
224+
not ok 19 - traces-in-t-throws › notThrows
199225
---
200226
name: AssertionError
201227
assertion: notThrows
@@ -216,7 +242,7 @@ not ok 18 - traces-in-t-throws › notThrows
216242
...
217243
---tty-stream-chunk-separator
218244
# traces-in-t-throws › notThrowsAsync
219-
not ok 19 - traces-in-t-throws › notThrowsAsync
245+
not ok 20 - traces-in-t-throws › notThrowsAsync
220246
---
221247
name: AssertionError
222248
assertion: notThrowsAsync
@@ -233,7 +259,7 @@ not ok 19 - traces-in-t-throws › notThrowsAsync
233259
...
234260
---tty-stream-chunk-separator
235261
# traces-in-t-throws › throwsAsync
236-
not ok 20 - traces-in-t-throws › throwsAsync
262+
not ok 21 - traces-in-t-throws › throwsAsync
237263
---
238264
name: AssertionError
239265
assertion: throwsAsync
@@ -250,7 +276,7 @@ not ok 20 - traces-in-t-throws › throwsAsync
250276
...
251277
---tty-stream-chunk-separator
252278
# traces-in-t-throws › throwsAsync different error
253-
not ok 21 - traces-in-t-throws › throwsAsync different error
279+
not ok 22 - traces-in-t-throws › throwsAsync different error
254280
---
255281
name: AssertionError
256282
assertion: throwsAsync
@@ -270,27 +296,27 @@ not ok 21 - traces-in-t-throws › throwsAsync different erro
270296
...
271297
---tty-stream-chunk-separator
272298
# uncaught-exception › passes
273-
ok 22 - uncaught-exception › passes
299+
ok 23 - uncaught-exception › passes
274300
---tty-stream-chunk-separator
275301
# Error: Can’t catch me
276-
not ok 23 - Error: Can’t catch me
302+
not ok 24 - Error: Can’t catch me
277303
---
278304
name: Error
279305
message: Can’t catch me
280306
at: 'Timeout.setTimeout (test-tap/fixture/report/regular/uncaught-exception.js:5:9)'
281307
...
282308
---tty-stream-chunk-separator
283309
# uncaught-exception.js exited with a non-zero exit code: 1
284-
not ok 24 - uncaught-exception.js exited with a non-zero exit code: 1
310+
not ok 25 - uncaught-exception.js exited with a non-zero exit code: 1
285311
---tty-stream-chunk-separator
286312
# unhandled-rejection › passes
287-
ok 25 - unhandled-rejection › passes
313+
ok 26 - unhandled-rejection › passes
288314
---tty-stream-chunk-separator
289315
# unhandled-rejection › unhandled non-error rejection
290-
ok 26 - unhandled-rejection › unhandled non-error rejection
316+
ok 27 - unhandled-rejection › unhandled non-error rejection
291317
---tty-stream-chunk-separator
292318
# Error: Can’t catch me
293-
not ok 27 - Error: Can’t catch me
319+
not ok 28 - Error: Can’t catch me
294320
---
295321
name: Error
296322
message: Can’t catch me
@@ -300,17 +326,17 @@ not ok 27 - Error: Can’t catch me
300326
...
301327
---tty-stream-chunk-separator
302328
# unhandled-rejection
303-
not ok 28 - unhandled-rejection
329+
not ok 29 - unhandled-rejection
304330
---
305331
message: Non-error object
306332
formatted: 'null'
307333
...
308334
---tty-stream-chunk-separator
309335

310-
1..22
311-
# tests 21
336+
1..23
337+
# tests 22
312338
# pass 6
313339
# skip 1
314-
# fail 21
340+
# fail 22
315341

316342
---tty-stream-chunk-separator

‎test-tap/reporters/tap.regular.v12.log

+53-29
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,30 @@ not ok 1 - TypeError: test.serial.test is not a function
1111
# bad-test-chain.js exited with a non-zero exit code: 1
1212
not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1
1313
---tty-stream-chunk-separator
14+
# nested-objects › format with max depth 4
15+
not ok 3 - nested-objects › format with max depth 4
16+
---
17+
name: AssertionError
18+
assertion: deepEqual
19+
values:
20+
'Difference:': |2-
21+
{
22+
a: {
23+
b: {
24+
foo: 'bar',
25+
},
26+
},
27+
+ c: {
28+
+ d: {
29+
+ e: {
30+
+ foo: 'bar',
31+
+ },
32+
+ },
33+
+ },
34+
}
35+
at: 'test-tap/fixture/report/regular/nested-objects.js:28:4'
36+
...
37+
---tty-stream-chunk-separator
1438
# output-in-hook › before hook
1539
---tty-stream-chunk-separator
1640
# output-in-hook › before hook
@@ -26,10 +50,10 @@ not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1
2650
# beforeEach
2751
---tty-stream-chunk-separator
2852
# output-in-hook › passing test
29-
ok 3 - output-in-hook › passing test
53+
ok 4 - output-in-hook › passing test
3054
---tty-stream-chunk-separator
3155
# output-in-hook › failing test
32-
not ok 4 - output-in-hook › failing test
56+
not ok 5 - output-in-hook › failing test
3357
---
3458
name: AssertionError
3559
message: Test failed via `t.fail()`
@@ -54,16 +78,16 @@ not ok 4 - output-in-hook › failing test
5478
# afterAlways
5579
---tty-stream-chunk-separator
5680
# test › skip
57-
ok 5 - test › skip # SKIP
81+
ok 6 - test › skip # SKIP
5882
---tty-stream-chunk-separator
5983
# test › todo
60-
not ok 6 - test › todo # TODO
84+
not ok 7 - test › todo # TODO
6185
---tty-stream-chunk-separator
6286
# test › passes
63-
ok 7 - test › passes
87+
ok 8 - test › passes
6488
---tty-stream-chunk-separator
6589
# test › fails
66-
not ok 8 - test › fails
90+
not ok 9 - test › fails
6791
---
6892
name: AssertionError
6993
message: Test failed via `t.fail()`
@@ -72,10 +96,10 @@ not ok 8 - test › fails
7296
...
7397
---tty-stream-chunk-separator
7498
# test › known failure
75-
ok 9 - test › known failure
99+
ok 10 - test › known failure
76100
---tty-stream-chunk-separator
77101
# test › no longer failing
78-
not ok 10 - test › no longer failing
102+
not ok 11 - test › no longer failing
79103
---
80104
name: Error
81105
message: >-
@@ -85,7 +109,7 @@ not ok 10 - test › no longer failing
85109
...
86110
---tty-stream-chunk-separator
87111
# test › logs
88-
not ok 11 - test › logs
112+
not ok 12 - test › logs
89113
* hello
90114
* world
91115
---
@@ -96,7 +120,7 @@ not ok 11 - test › logs
96120
...
97121
---tty-stream-chunk-separator
98122
# test › formatted
99-
not ok 12 - test › formatted
123+
not ok 13 - test › formatted
100124
---
101125
name: AssertionError
102126
assertion: deepEqual
@@ -108,7 +132,7 @@ not ok 12 - test › formatted
108132
...
109133
---tty-stream-chunk-separator
110134
# test › power-assert
111-
not ok 13 - test › power-assert
135+
not ok 14 - test › power-assert
112136
---
113137
name: AssertionError
114138
assertion: assert
@@ -119,7 +143,7 @@ not ok 13 - test › power-assert
119143
...
120144
---tty-stream-chunk-separator
121145
# test › bad throws
122-
not ok 14 - test › bad throws
146+
not ok 15 - test › bad throws
123147
---
124148
name: AssertionError
125149
message: Improper usage of `t.throws()` detected
@@ -135,7 +159,7 @@ not ok 14 - test › bad throws
135159
...
136160
---tty-stream-chunk-separator
137161
# test › bad notThrows
138-
not ok 15 - test › bad notThrows
162+
not ok 16 - test › bad notThrows
139163
---
140164
name: AssertionError
141165
message: Improper usage of `t.notThrows()` detected
@@ -151,7 +175,7 @@ not ok 15 - test › bad notThrows
151175
...
152176
---tty-stream-chunk-separator
153177
# test › implementation throws non-error
154-
not ok 16 - test › implementation throws non-error
178+
not ok 17 - test › implementation throws non-error
155179
---
156180
name: AssertionError
157181
message: Error thrown in test
@@ -161,7 +185,7 @@ not ok 16 - test › implementation throws non-error
161185
...
162186
---tty-stream-chunk-separator
163187
# traces-in-t-throws › throws
164-
not ok 17 - traces-in-t-throws › throws
188+
not ok 18 - traces-in-t-throws › throws
165189
---
166190
name: AssertionError
167191
assertion: throws
@@ -178,7 +202,7 @@ not ok 17 - traces-in-t-throws › throws
178202
...
179203
---tty-stream-chunk-separator
180204
# traces-in-t-throws › notThrows
181-
not ok 18 - traces-in-t-throws › notThrows
205+
not ok 19 - traces-in-t-throws › notThrows
182206
---
183207
name: AssertionError
184208
assertion: notThrows
@@ -194,7 +218,7 @@ not ok 18 - traces-in-t-throws › notThrows
194218
...
195219
---tty-stream-chunk-separator
196220
# traces-in-t-throws › notThrowsAsync
197-
not ok 19 - traces-in-t-throws › notThrowsAsync
221+
not ok 20 - traces-in-t-throws › notThrowsAsync
198222
---
199223
name: AssertionError
200224
assertion: notThrowsAsync
@@ -210,7 +234,7 @@ not ok 19 - traces-in-t-throws › notThrowsAsync
210234
...
211235
---tty-stream-chunk-separator
212236
# traces-in-t-throws › throwsAsync
213-
not ok 20 - traces-in-t-throws › throwsAsync
237+
not ok 21 - traces-in-t-throws › throwsAsync
214238
---
215239
name: AssertionError
216240
assertion: throwsAsync
@@ -229,7 +253,7 @@ not ok 20 - traces-in-t-throws › throwsAsync
229253
...
230254
---tty-stream-chunk-separator
231255
# traces-in-t-throws › throwsAsync different error
232-
not ok 21 - traces-in-t-throws › throwsAsync different error
256+
not ok 22 - traces-in-t-throws › throwsAsync different error
233257
---
234258
name: AssertionError
235259
assertion: throwsAsync
@@ -247,10 +271,10 @@ not ok 21 - traces-in-t-throws › throwsAsync different erro
247271
...
248272
---tty-stream-chunk-separator
249273
# uncaught-exception › passes
250-
ok 22 - uncaught-exception › passes
274+
ok 23 - uncaught-exception › passes
251275
---tty-stream-chunk-separator
252276
# Error: Can’t catch me
253-
not ok 23 - Error: Can’t catch me
277+
not ok 24 - Error: Can’t catch me
254278
---
255279
name: Error
256280
message: Can’t catch me
@@ -261,34 +285,34 @@ not ok 23 - Error: Can’t catch me
261285
...
262286
---tty-stream-chunk-separator
263287
# uncaught-exception.js exited with a non-zero exit code: 1
264-
not ok 24 - uncaught-exception.js exited with a non-zero exit code: 1
288+
not ok 25 - uncaught-exception.js exited with a non-zero exit code: 1
265289
---tty-stream-chunk-separator
266290
# unhandled-rejection › passes
267-
ok 25 - unhandled-rejection › passes
291+
ok 26 - unhandled-rejection › passes
268292
---tty-stream-chunk-separator
269293
# unhandled-rejection › unhandled non-error rejection
270-
ok 26 - unhandled-rejection › unhandled non-error rejection
294+
ok 27 - unhandled-rejection › unhandled non-error rejection
271295
---tty-stream-chunk-separator
272296
# Error: Can’t catch me
273-
not ok 27 - Error: Can’t catch me
297+
not ok 28 - Error: Can’t catch me
274298
---
275299
name: Error
276300
message: Can’t catch me
277301
at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.js:4:17)'
278302
...
279303
---tty-stream-chunk-separator
280304
# unhandled-rejection
281-
not ok 28 - unhandled-rejection
305+
not ok 29 - unhandled-rejection
282306
---
283307
message: Non-error object
284308
formatted: 'null'
285309
...
286310
---tty-stream-chunk-separator
287311

288-
1..22
289-
# tests 21
312+
1..23
313+
# tests 22
290314
# pass 6
291315
# skip 1
292-
# fail 21
316+
# fail 22
293317

294318
---tty-stream-chunk-separator

‎test-tap/reporters/tap.regular.v13.log

+53-29
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,30 @@ not ok 1 - TypeError: test.serial.test is not a function
1111
# bad-test-chain.js exited with a non-zero exit code: 1
1212
not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1
1313
---tty-stream-chunk-separator
14+
# nested-objects › format with max depth 4
15+
not ok 3 - nested-objects › format with max depth 4
16+
---
17+
name: AssertionError
18+
assertion: deepEqual
19+
values:
20+
'Difference:': |2-
21+
{
22+
a: {
23+
b: {
24+
foo: 'bar',
25+
},
26+
},
27+
+ c: {
28+
+ d: {
29+
+ e: {
30+
+ foo: 'bar',
31+
+ },
32+
+ },
33+
+ },
34+
}
35+
at: 'test-tap/fixture/report/regular/nested-objects.js:28:4'
36+
...
37+
---tty-stream-chunk-separator
1438
# output-in-hook › before hook
1539
---tty-stream-chunk-separator
1640
# output-in-hook › before hook
@@ -26,10 +50,10 @@ not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1
2650
# beforeEach
2751
---tty-stream-chunk-separator
2852
# output-in-hook › passing test
29-
ok 3 - output-in-hook › passing test
53+
ok 4 - output-in-hook › passing test
3054
---tty-stream-chunk-separator
3155
# output-in-hook › failing test
32-
not ok 4 - output-in-hook › failing test
56+
not ok 5 - output-in-hook › failing test
3357
---
3458
name: AssertionError
3559
message: Test failed via `t.fail()`
@@ -54,16 +78,16 @@ not ok 4 - output-in-hook › failing test
5478
# afterAlways
5579
---tty-stream-chunk-separator
5680
# test › skip
57-
ok 5 - test › skip # SKIP
81+
ok 6 - test › skip # SKIP
5882
---tty-stream-chunk-separator
5983
# test › todo
60-
not ok 6 - test › todo # TODO
84+
not ok 7 - test › todo # TODO
6185
---tty-stream-chunk-separator
6286
# test › passes
63-
ok 7 - test › passes
87+
ok 8 - test › passes
6488
---tty-stream-chunk-separator
6589
# test › fails
66-
not ok 8 - test › fails
90+
not ok 9 - test › fails
6791
---
6892
name: AssertionError
6993
message: Test failed via `t.fail()`
@@ -72,10 +96,10 @@ not ok 8 - test › fails
7296
...
7397
---tty-stream-chunk-separator
7498
# test › known failure
75-
ok 9 - test › known failure
99+
ok 10 - test › known failure
76100
---tty-stream-chunk-separator
77101
# test › no longer failing
78-
not ok 10 - test › no longer failing
102+
not ok 11 - test › no longer failing
79103
---
80104
name: Error
81105
message: >-
@@ -85,7 +109,7 @@ not ok 10 - test › no longer failing
85109
...
86110
---tty-stream-chunk-separator
87111
# test › logs
88-
not ok 11 - test › logs
112+
not ok 12 - test › logs
89113
* hello
90114
* world
91115
---
@@ -96,7 +120,7 @@ not ok 11 - test › logs
96120
...
97121
---tty-stream-chunk-separator
98122
# test › formatted
99-
not ok 12 - test › formatted
123+
not ok 13 - test › formatted
100124
---
101125
name: AssertionError
102126
assertion: deepEqual
@@ -108,7 +132,7 @@ not ok 12 - test › formatted
108132
...
109133
---tty-stream-chunk-separator
110134
# test › power-assert
111-
not ok 13 - test › power-assert
135+
not ok 14 - test › power-assert
112136
---
113137
name: AssertionError
114138
assertion: assert
@@ -119,7 +143,7 @@ not ok 13 - test › power-assert
119143
...
120144
---tty-stream-chunk-separator
121145
# test › bad throws
122-
not ok 14 - test › bad throws
146+
not ok 15 - test › bad throws
123147
---
124148
name: AssertionError
125149
message: Improper usage of `t.throws()` detected
@@ -135,7 +159,7 @@ not ok 14 - test › bad throws
135159
...
136160
---tty-stream-chunk-separator
137161
# test › bad notThrows
138-
not ok 15 - test › bad notThrows
162+
not ok 16 - test › bad notThrows
139163
---
140164
name: AssertionError
141165
message: Improper usage of `t.notThrows()` detected
@@ -151,7 +175,7 @@ not ok 15 - test › bad notThrows
151175
...
152176
---tty-stream-chunk-separator
153177
# test › implementation throws non-error
154-
not ok 16 - test › implementation throws non-error
178+
not ok 17 - test › implementation throws non-error
155179
---
156180
name: AssertionError
157181
message: Error thrown in test
@@ -161,7 +185,7 @@ not ok 16 - test › implementation throws non-error
161185
...
162186
---tty-stream-chunk-separator
163187
# traces-in-t-throws › throws
164-
not ok 17 - traces-in-t-throws › throws
188+
not ok 18 - traces-in-t-throws › throws
165189
---
166190
name: AssertionError
167191
assertion: throws
@@ -178,7 +202,7 @@ not ok 17 - traces-in-t-throws › throws
178202
...
179203
---tty-stream-chunk-separator
180204
# traces-in-t-throws › notThrows
181-
not ok 18 - traces-in-t-throws › notThrows
205+
not ok 19 - traces-in-t-throws › notThrows
182206
---
183207
name: AssertionError
184208
assertion: notThrows
@@ -194,7 +218,7 @@ not ok 18 - traces-in-t-throws › notThrows
194218
...
195219
---tty-stream-chunk-separator
196220
# traces-in-t-throws › notThrowsAsync
197-
not ok 19 - traces-in-t-throws › notThrowsAsync
221+
not ok 20 - traces-in-t-throws › notThrowsAsync
198222
---
199223
name: AssertionError
200224
assertion: notThrowsAsync
@@ -210,7 +234,7 @@ not ok 19 - traces-in-t-throws › notThrowsAsync
210234
...
211235
---tty-stream-chunk-separator
212236
# traces-in-t-throws › throwsAsync
213-
not ok 20 - traces-in-t-throws › throwsAsync
237+
not ok 21 - traces-in-t-throws › throwsAsync
214238
---
215239
name: AssertionError
216240
assertion: throwsAsync
@@ -229,7 +253,7 @@ not ok 20 - traces-in-t-throws › throwsAsync
229253
...
230254
---tty-stream-chunk-separator
231255
# traces-in-t-throws › throwsAsync different error
232-
not ok 21 - traces-in-t-throws › throwsAsync different error
256+
not ok 22 - traces-in-t-throws › throwsAsync different error
233257
---
234258
name: AssertionError
235259
assertion: throwsAsync
@@ -247,10 +271,10 @@ not ok 21 - traces-in-t-throws › throwsAsync different erro
247271
...
248272
---tty-stream-chunk-separator
249273
# uncaught-exception › passes
250-
ok 22 - uncaught-exception › passes
274+
ok 23 - uncaught-exception › passes
251275
---tty-stream-chunk-separator
252276
# Error: Can’t catch me
253-
not ok 23 - Error: Can’t catch me
277+
not ok 24 - Error: Can’t catch me
254278
---
255279
name: Error
256280
message: Can’t catch me
@@ -261,34 +285,34 @@ not ok 23 - Error: Can’t catch me
261285
...
262286
---tty-stream-chunk-separator
263287
# uncaught-exception.js exited with a non-zero exit code: 1
264-
not ok 24 - uncaught-exception.js exited with a non-zero exit code: 1
288+
not ok 25 - uncaught-exception.js exited with a non-zero exit code: 1
265289
---tty-stream-chunk-separator
266290
# unhandled-rejection › passes
267-
ok 25 - unhandled-rejection › passes
291+
ok 26 - unhandled-rejection › passes
268292
---tty-stream-chunk-separator
269293
# unhandled-rejection › unhandled non-error rejection
270-
ok 26 - unhandled-rejection › unhandled non-error rejection
294+
ok 27 - unhandled-rejection › unhandled non-error rejection
271295
---tty-stream-chunk-separator
272296
# Error: Can’t catch me
273-
not ok 27 - Error: Can’t catch me
297+
not ok 28 - Error: Can’t catch me
274298
---
275299
name: Error
276300
message: Can’t catch me
277301
at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.js:4:17)'
278302
...
279303
---tty-stream-chunk-separator
280304
# unhandled-rejection
281-
not ok 28 - unhandled-rejection
305+
not ok 29 - unhandled-rejection
282306
---
283307
message: Non-error object
284308
formatted: 'null'
285309
...
286310
---tty-stream-chunk-separator
287311

288-
1..22
289-
# tests 21
312+
1..23
313+
# tests 22
290314
# pass 6
291315
# skip 1
292-
# fail 21
316+
# fail 22
293317

294318
---tty-stream-chunk-separator

‎test-tap/reporters/tap.regular.v14.log

+53-29
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,30 @@ not ok 1 - TypeError: test.serial.test is not a function
1111
# bad-test-chain.js exited with a non-zero exit code: 1
1212
not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1
1313
---tty-stream-chunk-separator
14+
# nested-objects › format with max depth 4
15+
not ok 3 - nested-objects › format with max depth 4
16+
---
17+
name: AssertionError
18+
assertion: deepEqual
19+
values:
20+
'Difference:': |2-
21+
{
22+
a: {
23+
b: {
24+
foo: 'bar',
25+
},
26+
},
27+
+ c: {
28+
+ d: {
29+
+ e: {
30+
+ foo: 'bar',
31+
+ },
32+
+ },
33+
+ },
34+
}
35+
at: 'test-tap/fixture/report/regular/nested-objects.js:28:4'
36+
...
37+
---tty-stream-chunk-separator
1438
# output-in-hook › before hook
1539
---tty-stream-chunk-separator
1640
# output-in-hook › before hook
@@ -26,10 +50,10 @@ not ok 2 - bad-test-chain.js exited with a non-zero exit code: 1
2650
# beforeEach
2751
---tty-stream-chunk-separator
2852
# output-in-hook › passing test
29-
ok 3 - output-in-hook › passing test
53+
ok 4 - output-in-hook › passing test
3054
---tty-stream-chunk-separator
3155
# output-in-hook › failing test
32-
not ok 4 - output-in-hook › failing test
56+
not ok 5 - output-in-hook › failing test
3357
---
3458
name: AssertionError
3559
message: Test failed via `t.fail()`
@@ -54,16 +78,16 @@ not ok 4 - output-in-hook › failing test
5478
# afterAlways
5579
---tty-stream-chunk-separator
5680
# test › skip
57-
ok 5 - test › skip # SKIP
81+
ok 6 - test › skip # SKIP
5882
---tty-stream-chunk-separator
5983
# test › todo
60-
not ok 6 - test › todo # TODO
84+
not ok 7 - test › todo # TODO
6185
---tty-stream-chunk-separator
6286
# test › passes
63-
ok 7 - test › passes
87+
ok 8 - test › passes
6488
---tty-stream-chunk-separator
6589
# test › fails
66-
not ok 8 - test › fails
90+
not ok 9 - test › fails
6791
---
6892
name: AssertionError
6993
message: Test failed via `t.fail()`
@@ -72,10 +96,10 @@ not ok 8 - test › fails
7296
...
7397
---tty-stream-chunk-separator
7498
# test › known failure
75-
ok 9 - test › known failure
99+
ok 10 - test › known failure
76100
---tty-stream-chunk-separator
77101
# test › no longer failing
78-
not ok 10 - test › no longer failing
102+
not ok 11 - test › no longer failing
79103
---
80104
name: Error
81105
message: >-
@@ -85,7 +109,7 @@ not ok 10 - test › no longer failing
85109
...
86110
---tty-stream-chunk-separator
87111
# test › logs
88-
not ok 11 - test › logs
112+
not ok 12 - test › logs
89113
* hello
90114
* world
91115
---
@@ -96,7 +120,7 @@ not ok 11 - test › logs
96120
...
97121
---tty-stream-chunk-separator
98122
# test › formatted
99-
not ok 12 - test › formatted
123+
not ok 13 - test › formatted
100124
---
101125
name: AssertionError
102126
assertion: deepEqual
@@ -108,7 +132,7 @@ not ok 12 - test › formatted
108132
...
109133
---tty-stream-chunk-separator
110134
# test › power-assert
111-
not ok 13 - test › power-assert
135+
not ok 14 - test › power-assert
112136
---
113137
name: AssertionError
114138
assertion: assert
@@ -119,7 +143,7 @@ not ok 13 - test › power-assert
119143
...
120144
---tty-stream-chunk-separator
121145
# test › bad throws
122-
not ok 14 - test › bad throws
146+
not ok 15 - test › bad throws
123147
---
124148
name: AssertionError
125149
message: Improper usage of `t.throws()` detected
@@ -135,7 +159,7 @@ not ok 14 - test › bad throws
135159
...
136160
---tty-stream-chunk-separator
137161
# test › bad notThrows
138-
not ok 15 - test › bad notThrows
162+
not ok 16 - test › bad notThrows
139163
---
140164
name: AssertionError
141165
message: Improper usage of `t.notThrows()` detected
@@ -151,7 +175,7 @@ not ok 15 - test › bad notThrows
151175
...
152176
---tty-stream-chunk-separator
153177
# test › implementation throws non-error
154-
not ok 16 - test › implementation throws non-error
178+
not ok 17 - test › implementation throws non-error
155179
---
156180
name: AssertionError
157181
message: Error thrown in test
@@ -161,7 +185,7 @@ not ok 16 - test › implementation throws non-error
161185
...
162186
---tty-stream-chunk-separator
163187
# traces-in-t-throws › throws
164-
not ok 17 - traces-in-t-throws › throws
188+
not ok 18 - traces-in-t-throws › throws
165189
---
166190
name: AssertionError
167191
assertion: throws
@@ -178,7 +202,7 @@ not ok 17 - traces-in-t-throws › throws
178202
...
179203
---tty-stream-chunk-separator
180204
# traces-in-t-throws › notThrows
181-
not ok 18 - traces-in-t-throws › notThrows
205+
not ok 19 - traces-in-t-throws › notThrows
182206
---
183207
name: AssertionError
184208
assertion: notThrows
@@ -194,7 +218,7 @@ not ok 18 - traces-in-t-throws › notThrows
194218
...
195219
---tty-stream-chunk-separator
196220
# traces-in-t-throws › notThrowsAsync
197-
not ok 19 - traces-in-t-throws › notThrowsAsync
221+
not ok 20 - traces-in-t-throws › notThrowsAsync
198222
---
199223
name: AssertionError
200224
assertion: notThrowsAsync
@@ -210,7 +234,7 @@ not ok 19 - traces-in-t-throws › notThrowsAsync
210234
...
211235
---tty-stream-chunk-separator
212236
# traces-in-t-throws › throwsAsync
213-
not ok 20 - traces-in-t-throws › throwsAsync
237+
not ok 21 - traces-in-t-throws › throwsAsync
214238
---
215239
name: AssertionError
216240
assertion: throwsAsync
@@ -229,7 +253,7 @@ not ok 20 - traces-in-t-throws › throwsAsync
229253
...
230254
---tty-stream-chunk-separator
231255
# traces-in-t-throws › throwsAsync different error
232-
not ok 21 - traces-in-t-throws › throwsAsync different error
256+
not ok 22 - traces-in-t-throws › throwsAsync different error
233257
---
234258
name: AssertionError
235259
assertion: throwsAsync
@@ -247,10 +271,10 @@ not ok 21 - traces-in-t-throws › throwsAsync different erro
247271
...
248272
---tty-stream-chunk-separator
249273
# uncaught-exception › passes
250-
ok 22 - uncaught-exception › passes
274+
ok 23 - uncaught-exception › passes
251275
---tty-stream-chunk-separator
252276
# Error: Can’t catch me
253-
not ok 23 - Error: Can’t catch me
277+
not ok 24 - Error: Can’t catch me
254278
---
255279
name: Error
256280
message: Can’t catch me
@@ -261,34 +285,34 @@ not ok 23 - Error: Can’t catch me
261285
...
262286
---tty-stream-chunk-separator
263287
# uncaught-exception.js exited with a non-zero exit code: 1
264-
not ok 24 - uncaught-exception.js exited with a non-zero exit code: 1
288+
not ok 25 - uncaught-exception.js exited with a non-zero exit code: 1
265289
---tty-stream-chunk-separator
266290
# unhandled-rejection › passes
267-
ok 25 - unhandled-rejection › passes
291+
ok 26 - unhandled-rejection › passes
268292
---tty-stream-chunk-separator
269293
# unhandled-rejection › unhandled non-error rejection
270-
ok 26 - unhandled-rejection › unhandled non-error rejection
294+
ok 27 - unhandled-rejection › unhandled non-error rejection
271295
---tty-stream-chunk-separator
272296
# Error: Can’t catch me
273-
not ok 27 - Error: Can’t catch me
297+
not ok 28 - Error: Can’t catch me
274298
---
275299
name: Error
276300
message: Can’t catch me
277301
at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.js:4:17)'
278302
...
279303
---tty-stream-chunk-separator
280304
# unhandled-rejection
281-
not ok 28 - unhandled-rejection
305+
not ok 29 - unhandled-rejection
282306
---
283307
message: Non-error object
284308
formatted: 'null'
285309
...
286310
---tty-stream-chunk-separator
287311

288-
1..22
289-
# tests 21
312+
1..23
313+
# tests 22
290314
# pass 6
291315
# skip 1
292-
# fail 21
316+
# fail 22
293317

294318
---tty-stream-chunk-separator

‎test-tap/reporters/verbose.regular.v10.log

+33-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
---tty-stream-chunk-separator
1616
✖ bad-test-chain.js exited with a non-zero exit code: 1
17+
---tty-stream-chunk-separator
18+
✖ nested-objects › format with max depth 4
1719
---tty-stream-chunk-separator
1820
output-in-hook › before hook
1921
ℹ before
@@ -119,7 +121,7 @@
119121

120122
---tty-stream-chunk-separator
121123

122-
14 tests failed
124+
15 tests failed
123125
1 known failure
124126
1 test skipped
125127
1 test todo
@@ -128,6 +130,36 @@
128130

129131
test › known failure
130132

133+
nested-objects › format with max depth 4
134+
135+
nested-objects.js:28
136+
137+
27: };
138+
 28: t.deepEqual(exp, act);
139+
29: });
140+
141+
Difference:
142+
143+
{
144+
a: {
145+
b: {
146+
foo: 'bar',
147+
},
148+
},
149+
+ c: {
150+
+ d: {
151+
+ e: {
152+
+ foo: 'bar',
153+
+ },
154+
+ },
155+
+ },
156+
}
157+
158+
› t (test-tap/fixture/report/regular/nested-objects.js:28:4)
159+
› process._tickCallback (internal/process/next_tick.js:68:7)
160+
161+
162+
131163
output-in-hook › failing test
132164

133165
output-in-hook.js:34

‎test-tap/reporters/verbose.regular.v12.log

+32-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
---tty-stream-chunk-separator
1616
✖ bad-test-chain.js exited with a non-zero exit code: 1
17+
---tty-stream-chunk-separator
18+
✖ nested-objects › format with max depth 4
1719
---tty-stream-chunk-separator
1820
output-in-hook › before hook
1921
ℹ before
@@ -120,7 +122,7 @@
120122

121123
---tty-stream-chunk-separator
122124

123-
14 tests failed
125+
15 tests failed
124126
1 known failure
125127
1 test skipped
126128
1 test todo
@@ -129,6 +131,35 @@
129131

130132
test › known failure
131133

134+
nested-objects › format with max depth 4
135+
136+
nested-objects.js:28
137+
138+
27: };
139+
 28: t.deepEqual(exp, act);
140+
29: });
141+
142+
Difference:
143+
144+
{
145+
a: {
146+
b: {
147+
foo: 'bar',
148+
},
149+
},
150+
+ c: {
151+
+ d: {
152+
+ e: {
153+
+ foo: 'bar',
154+
+ },
155+
+ },
156+
+ },
157+
}
158+
159+
› test-tap/fixture/report/regular/nested-objects.js:28:4
160+
161+
162+
132163
output-in-hook › failing test
133164

134165
output-in-hook.js:34

‎test-tap/reporters/verbose.regular.v13.log

+32-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
---tty-stream-chunk-separator
1616
✖ bad-test-chain.js exited with a non-zero exit code: 1
17+
---tty-stream-chunk-separator
18+
✖ nested-objects › format with max depth 4
1719
---tty-stream-chunk-separator
1820
output-in-hook › before hook
1921
ℹ before
@@ -120,7 +122,7 @@
120122

121123
---tty-stream-chunk-separator
122124

123-
14 tests failed
125+
15 tests failed
124126
1 known failure
125127
1 test skipped
126128
1 test todo
@@ -129,6 +131,35 @@
129131

130132
test › known failure
131133

134+
nested-objects › format with max depth 4
135+
136+
nested-objects.js:28
137+
138+
27: };
139+
 28: t.deepEqual(exp, act);
140+
29: });
141+
142+
Difference:
143+
144+
{
145+
a: {
146+
b: {
147+
foo: 'bar',
148+
},
149+
},
150+
+ c: {
151+
+ d: {
152+
+ e: {
153+
+ foo: 'bar',
154+
+ },
155+
+ },
156+
+ },
157+
}
158+
159+
› test-tap/fixture/report/regular/nested-objects.js:28:4
160+
161+
162+
132163
output-in-hook › failing test
133164

134165
output-in-hook.js:34

‎test-tap/reporters/verbose.regular.v14.log

+32-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
---tty-stream-chunk-separator
1616
✖ bad-test-chain.js exited with a non-zero exit code: 1
17+
---tty-stream-chunk-separator
18+
✖ nested-objects › format with max depth 4
1719
---tty-stream-chunk-separator
1820
output-in-hook › before hook
1921
ℹ before
@@ -120,7 +122,7 @@
120122

121123
---tty-stream-chunk-separator
122124

123-
14 tests failed
125+
15 tests failed
124126
1 known failure
125127
1 test skipped
126128
1 test todo
@@ -129,6 +131,35 @@
129131

130132
test › known failure
131133

134+
nested-objects › format with max depth 4
135+
136+
nested-objects.js:28
137+
138+
27: };
139+
 28: t.deepEqual(exp, act);
140+
29: });
141+
142+
Difference:
143+
144+
{
145+
a: {
146+
b: {
147+
foo: 'bar',
148+
},
149+
},
150+
+ c: {
151+
+ d: {
152+
+ e: {
153+
+ foo: 'bar',
154+
+ },
155+
+ },
156+
+ },
157+
}
158+
159+
› test-tap/fixture/report/regular/nested-objects.js:28:4
160+
161+
162+
132163
output-in-hook › failing test
133164

134165
output-in-hook.js:34

0 commit comments

Comments
 (0)
Please sign in to comment.