Skip to content

Commit 4bec27f

Browse files
committed
✅ update tap reporters
1 parent 8a5b07c commit 4bec27f

File tree

6 files changed

+87
-132
lines changed

6 files changed

+87
-132
lines changed

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

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,7 @@
6262
---tty-stream-chunk-separator
6363
✘ [fail]: test › formatted
6464
---tty-stream-chunk-separator
65-
✘ Internal error when running test.cjs
66-
TypeError: Cannot read property 'matcherResult' of null
67-
TypeError: Cannot read property 'matcherResult' of null
68-
 at isExternalAssertError (file://~/lib/test.js:12:12)
69-
 at Test.run (file://~/lib/test.js:532:8)
70-
 at Runner.runSingle (file://~/lib/runner.js:285:33)
71-
 at Runner.runTest (file://~/lib/runner.js:367:30)
72-
 at processTicksAndRejections (internal/process/task_queues.js:95:5)
73-
 at async Promise.all (index 6)
74-
 at async file://~/lib/runner.js:532:21
75-
 at async Runner.start (file://~/lib/runner.js:540:15)
76-
77-
78-
---tty-stream-chunk-separator
79-
✘ test.cjs exited with a non-zero exit code: 1
65+
✘ [fail]: test › implementation throws non-error Error thrown in test
8066
---tty-stream-chunk-separator
8167
✘ [fail]: traces-in-t-throws › throws
8268
---tty-stream-chunk-separator
@@ -247,6 +233,14 @@
247233

248234

249235

236+
test › implementation throws non-error
237+
238+
Error thrown in test:
239+
240+
null
241+
242+
243+
250244
traces-in-t-throws › throws
251245

252246
traces-in-t-throws.cjs:12
@@ -354,7 +348,7 @@
354348

355349
─
356350

357-
12 tests failed
351+
13 tests failed
358352
1 known failure
359353
1 test skipped
360354
1 test todo

test-tap/reporters/default.regular.v16.log

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,7 @@
6262
---tty-stream-chunk-separator
6363
✘ [fail]: test › formatted
6464
---tty-stream-chunk-separator
65-
✘ Internal error when running test.cjs
66-
TypeError: Cannot read properties of null (reading 'matcherResult')
67-
TypeError: Cannot read properties of null (reading 'matcherResult')
68-
 at isExternalAssertError (file://~/lib/test.js:12:12)
69-
 at Test.run (file://~/lib/test.js:532:8)
70-
 at Runner.runSingle (file://~/lib/runner.js:285:33)
71-
 at Runner.runTest (file://~/lib/runner.js:367:30)
72-
 at processTicksAndRejections (node:internal/process/task_queues:96:5)
73-
 at async Promise.all (index 6)
74-
 at async file://~/lib/runner.js:532:21
75-
 at async Runner.start (file://~/lib/runner.js:540:15)
76-
77-
78-
---tty-stream-chunk-separator
79-
✘ test.cjs exited with a non-zero exit code: 1
65+
✘ [fail]: test › implementation throws non-error Error thrown in test
8066
---tty-stream-chunk-separator
8167
✘ [fail]: traces-in-t-throws › throws
8268
---tty-stream-chunk-separator
@@ -247,6 +233,14 @@
247233

248234

249235

236+
test › implementation throws non-error
237+
238+
Error thrown in test:
239+
240+
null
241+
242+
243+
250244
traces-in-t-throws › throws
251245

252246
traces-in-t-throws.cjs:12
@@ -354,7 +348,7 @@
354348

355349
─
356350

357-
12 tests failed
351+
13 tests failed
358352
1 known failure
359353
1 test skipped
360354
1 test todo

test-tap/reporters/default.regular.v18.log

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,7 @@
6262
---tty-stream-chunk-separator
6363
✘ [fail]: test › formatted
6464
---tty-stream-chunk-separator
65-
✘ Internal error when running test.cjs
66-
TypeError: Cannot read properties of null (reading 'matcherResult')
67-
TypeError: Cannot read properties of null (reading 'matcherResult')
68-
 at isExternalAssertError (file://~/lib/test.js:12:12)
69-
 at Test.run (file://~/lib/test.js:532:8)
70-
 at Runner.runSingle (file://~/lib/runner.js:285:33)
71-
 at Runner.runTest (file://~/lib/runner.js:367:30)
72-
 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
73-
 at async Promise.all (index 6)
74-
 at async file://~/lib/runner.js:532:21
75-
 at async Runner.start (file://~/lib/runner.js:540:15)
76-
77-
78-
---tty-stream-chunk-separator
79-
✘ test.cjs exited with a non-zero exit code: 1
65+
✘ [fail]: test › implementation throws non-error Error thrown in test
8066
---tty-stream-chunk-separator
8167
✘ [fail]: traces-in-t-throws › throws
8268
---tty-stream-chunk-separator
@@ -247,6 +233,14 @@
247233

248234

249235

236+
test › implementation throws non-error
237+
238+
Error thrown in test:
239+
240+
null
241+
242+
243+
250244
traces-in-t-throws › throws
251245

252246
traces-in-t-throws.cjs:12
@@ -354,7 +348,7 @@
354348

355349
─
356350

357-
12 tests failed
351+
13 tests failed
358352
1 known failure
359353
1 test skipped
360354
1 test todo

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

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -135,25 +135,16 @@ not ok 14 - test › formatted
135135
at: 'test-tap/fixture/report/regular/test.cjs:22:4'
136136
...
137137
---tty-stream-chunk-separator
138-
not ok 15 - TypeError: Cannot read property 'matcherResult' of null
138+
not ok 15 - test › implementation throws non-error
139139
---
140-
name: TypeError
141-
message: Cannot read property 'matcherResult' of null
142-
at: |-
143-
TypeError: Cannot read property 'matcherResult' of null
144-
at isExternalAssertError (file://~/lib/test.js:12:12)
145-
at Test.run (file://~/lib/test.js:532:8)
146-
at Runner.runSingle (file://~/lib/runner.js:285:33)
147-
at Runner.runTest (file://~/lib/runner.js:367:30)
148-
at processTicksAndRejections (internal/process/task_queues.js:95:5)
149-
at async Promise.all (index 6)
150-
at async file://~/lib/runner.js:532:21
151-
at async Runner.start (file://~/lib/runner.js:540:15)
140+
name: AssertionError
141+
message: Error thrown in test
142+
values:
143+
'Error thrown in test:': 'null'
144+
at: ''
152145
...
153146
---tty-stream-chunk-separator
154-
not ok 16 - test.cjs exited with a non-zero exit code: 1
155-
---tty-stream-chunk-separator
156-
not ok 17 - traces-in-t-throws › throws
147+
not ok 16 - traces-in-t-throws › throws
157148
---
158149
name: AssertionError
159150
assertion: throws
@@ -172,7 +163,7 @@ not ok 17 - traces-in-t-throws › throws
172163
test-tap/fixture/report/regular/traces-in-t-throws.cjs:12:4
173164
...
174165
---tty-stream-chunk-separator
175-
not ok 18 - traces-in-t-throws › notThrows
166+
not ok 17 - traces-in-t-throws › notThrows
176167
---
177168
name: AssertionError
178169
assertion: notThrows
@@ -187,7 +178,7 @@ not ok 18 - traces-in-t-throws › notThrows
187178
test-tap/fixture/report/regular/traces-in-t-throws.cjs:16:4
188179
...
189180
---tty-stream-chunk-separator
190-
not ok 19 - traces-in-t-throws › notThrowsAsync
181+
not ok 18 - traces-in-t-throws › notThrowsAsync
191182
---
192183
name: AssertionError
193184
assertion: notThrowsAsync
@@ -202,7 +193,7 @@ not ok 19 - traces-in-t-throws › notThrowsAsync
202193
test-tap/fixture/report/regular/traces-in-t-throws.cjs:20:4
203194
...
204195
---tty-stream-chunk-separator
205-
not ok 20 - traces-in-t-throws › throwsAsync
196+
not ok 19 - traces-in-t-throws › throwsAsync
206197
---
207198
name: AssertionError
208199
assertion: throwsAsync
@@ -220,7 +211,7 @@ not ok 20 - traces-in-t-throws › throwsAsync
220211
test-tap/fixture/report/regular/traces-in-t-throws.cjs:24:4
221212
...
222213
---tty-stream-chunk-separator
223-
not ok 21 - traces-in-t-throws › throwsAsync different error
214+
not ok 20 - traces-in-t-throws › throwsAsync different error
224215
---
225216
name: AssertionError
226217
assertion: throwsAsync
@@ -237,9 +228,9 @@ not ok 21 - traces-in-t-throws › throwsAsync different error
237228
test-tap/fixture/report/regular/traces-in-t-throws.cjs:27:44
238229
...
239230
---tty-stream-chunk-separator
240-
ok 22 - uncaught-exception › passes
231+
ok 21 - uncaught-exception › passes
241232
---tty-stream-chunk-separator
242-
not ok 23 - Error: Can’t catch me
233+
not ok 22 - Error: Can’t catch me
243234
---
244235
name: Error
245236
message: Can’t catch me
@@ -248,20 +239,20 @@ not ok 23 - Error: Can’t catch me
248239
(test-tap/fixture/report/regular/uncaught-exception.cjs:5:9)
249240
...
250241
---tty-stream-chunk-separator
251-
not ok 24 - uncaught-exception.cjs exited with a non-zero exit code: 1
242+
not ok 23 - uncaught-exception.cjs exited with a non-zero exit code: 1
252243
---tty-stream-chunk-separator
253-
ok 25 - unhandled-rejection › passes
244+
ok 24 - unhandled-rejection › passes
254245
---tty-stream-chunk-separator
255-
ok 26 - unhandled-rejection › unhandled non-error rejection
246+
ok 25 - unhandled-rejection › unhandled non-error rejection
256247
---tty-stream-chunk-separator
257-
not ok 27 - Error: Can’t catch me
248+
not ok 26 - Error: Can’t catch me
258249
---
259250
name: Error
260251
message: Can’t catch me
261252
at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.cjs:4:17)'
262253
...
263254
---tty-stream-chunk-separator
264-
not ok 28 - unhandled-rejection
255+
not ok 27 - unhandled-rejection
265256
---
266257
message: Non-error object
267258
formatted: 'null'
@@ -272,6 +263,6 @@ not ok 28 - unhandled-rejection
272263
# tests 20
273264
# pass 6
274265
# skip 1
275-
# fail 22
266+
# fail 20
276267

277268
---tty-stream-chunk-separator

test-tap/reporters/tap.regular.v16.log

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -135,25 +135,16 @@ not ok 14 - test › formatted
135135
at: 'test-tap/fixture/report/regular/test.cjs:22:4'
136136
...
137137
---tty-stream-chunk-separator
138-
not ok 15 - TypeError: Cannot read properties of null (reading 'matcherResult')
138+
not ok 15 - test › implementation throws non-error
139139
---
140-
name: TypeError
141-
message: Cannot read properties of null (reading 'matcherResult')
142-
at: |-
143-
TypeError: Cannot read properties of null (reading 'matcherResult')
144-
at isExternalAssertError (file://~/lib/test.js:12:12)
145-
at Test.run (file://~/lib/test.js:532:8)
146-
at Runner.runSingle (file://~/lib/runner.js:285:33)
147-
at Runner.runTest (file://~/lib/runner.js:367:30)
148-
at processTicksAndRejections (node:internal/process/task_queues:96:5)
149-
at async Promise.all (index 6)
150-
at async file://~/lib/runner.js:532:21
151-
at async Runner.start (file://~/lib/runner.js:540:15)
140+
name: AssertionError
141+
message: Error thrown in test
142+
values:
143+
'Error thrown in test:': 'null'
144+
at: ''
152145
...
153146
---tty-stream-chunk-separator
154-
not ok 16 - test.cjs exited with a non-zero exit code: 1
155-
---tty-stream-chunk-separator
156-
not ok 17 - traces-in-t-throws › throws
147+
not ok 16 - traces-in-t-throws › throws
157148
---
158149
name: AssertionError
159150
assertion: throws
@@ -172,7 +163,7 @@ not ok 17 - traces-in-t-throws › throws
172163
test-tap/fixture/report/regular/traces-in-t-throws.cjs:12:4
173164
...
174165
---tty-stream-chunk-separator
175-
not ok 18 - traces-in-t-throws › notThrows
166+
not ok 17 - traces-in-t-throws › notThrows
176167
---
177168
name: AssertionError
178169
assertion: notThrows
@@ -187,7 +178,7 @@ not ok 18 - traces-in-t-throws › notThrows
187178
test-tap/fixture/report/regular/traces-in-t-throws.cjs:16:4
188179
...
189180
---tty-stream-chunk-separator
190-
not ok 19 - traces-in-t-throws › notThrowsAsync
181+
not ok 18 - traces-in-t-throws › notThrowsAsync
191182
---
192183
name: AssertionError
193184
assertion: notThrowsAsync
@@ -202,7 +193,7 @@ not ok 19 - traces-in-t-throws › notThrowsAsync
202193
test-tap/fixture/report/regular/traces-in-t-throws.cjs:20:4
203194
...
204195
---tty-stream-chunk-separator
205-
not ok 20 - traces-in-t-throws › throwsAsync
196+
not ok 19 - traces-in-t-throws › throwsAsync
206197
---
207198
name: AssertionError
208199
assertion: throwsAsync
@@ -220,7 +211,7 @@ not ok 20 - traces-in-t-throws › throwsAsync
220211
test-tap/fixture/report/regular/traces-in-t-throws.cjs:24:4
221212
...
222213
---tty-stream-chunk-separator
223-
not ok 21 - traces-in-t-throws › throwsAsync different error
214+
not ok 20 - traces-in-t-throws › throwsAsync different error
224215
---
225216
name: AssertionError
226217
assertion: throwsAsync
@@ -237,9 +228,9 @@ not ok 21 - traces-in-t-throws › throwsAsync different error
237228
test-tap/fixture/report/regular/traces-in-t-throws.cjs:27:44
238229
...
239230
---tty-stream-chunk-separator
240-
ok 22 - uncaught-exception › passes
231+
ok 21 - uncaught-exception › passes
241232
---tty-stream-chunk-separator
242-
not ok 23 - Error: Can’t catch me
233+
not ok 22 - Error: Can’t catch me
243234
---
244235
name: Error
245236
message: Can’t catch me
@@ -248,20 +239,20 @@ not ok 23 - Error: Can’t catch me
248239
(test-tap/fixture/report/regular/uncaught-exception.cjs:5:9)
249240
...
250241
---tty-stream-chunk-separator
251-
not ok 24 - uncaught-exception.cjs exited with a non-zero exit code: 1
242+
not ok 23 - uncaught-exception.cjs exited with a non-zero exit code: 1
252243
---tty-stream-chunk-separator
253-
ok 25 - unhandled-rejection › passes
244+
ok 24 - unhandled-rejection › passes
254245
---tty-stream-chunk-separator
255-
ok 26 - unhandled-rejection › unhandled non-error rejection
246+
ok 25 - unhandled-rejection › unhandled non-error rejection
256247
---tty-stream-chunk-separator
257-
not ok 27 - Error: Can’t catch me
248+
not ok 26 - Error: Can’t catch me
258249
---
259250
name: Error
260251
message: Can’t catch me
261252
at: 'passes (test-tap/fixture/report/regular/unhandled-rejection.cjs:4:17)'
262253
...
263254
---tty-stream-chunk-separator
264-
not ok 28 - unhandled-rejection
255+
not ok 27 - unhandled-rejection
265256
---
266257
message: Non-error object
267258
formatted: 'null'
@@ -272,6 +263,6 @@ not ok 28 - unhandled-rejection
272263
# tests 20
273264
# pass 6
274265
# skip 1
275-
# fail 22
266+
# fail 20
276267

277268
---tty-stream-chunk-separator

0 commit comments

Comments
 (0)