Skip to content

Commit ef4db76

Browse files
committed
add snapshot
1 parent c7462f6 commit ef4db76

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

lib/internal/test_runner/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ class Test extends AsyncResource {
659659
this.reporter.fail(this.nesting, kFilename, this.testNumber, this.name, {
660660
__proto__: null,
661661
duration_ms: this.#duration(),
662-
error: this.error
662+
error: this.error,
663663
}, undefined);
664664
}
665665

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
this is a test
2+
TAP version 13
3+
# Subtest: this is a test
4+
ok 1 - this is a test
5+
---
6+
duration_ms: *
7+
...
8+
not ok 0 - <root>
9+
---
10+
duration_ms: *
11+
failureType: 'hookFailed'
12+
error: 'failed running after hook'
13+
code: 'ERR_TEST_FAILURE'
14+
stack: |-
15+
*
16+
*
17+
*
18+
*
19+
*
20+
*
21+
*
22+
*
23+
*
24+
*
25+
...
26+
1..1
27+
# tests 1
28+
# suites 0
29+
# pass 1
30+
# fail 0
31+
# cancelled 0
32+
# skipped 0
33+
# todo 0
34+
# duration_ms *

0 commit comments

Comments
 (0)