We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
node:test
1 parent 486dcd7 commit b24517eCopy full SHA for b24517e
lib/internal/test_runner/tap_stream.js
@@ -71,6 +71,10 @@ class TapStream extends Readable {
71
return `TODO${reason ? ` ${tapEscape(reason)}` : ''}`;
72
}
73
74
+ subTest(indent, name) {
75
+ this.#tryPush(`${indent}# Subtest: ${tapEscape(name)}\n`);
76
+ }
77
+
78
details(indent, duration, error) {
79
let details = `${indent} ---\n`;
80
lib/internal/test_runner/test.js
@@ -280,6 +280,7 @@ class Test extends AsyncResource {
280
281
282
start() {
283
+ this.reporter.subTest(this.indent, this.name);
284
// If there is enough available concurrency to run the test now, then do
285
// it. Otherwise, return a Promise to the caller and mark the test as
286
// pending for later execution.
0 commit comments