Skip to content

Commit

Permalink
test_runner: emit start event when subtest starts
Browse files Browse the repository at this point in the history
emit a start event to show message just after a test/subtest start

Fixes: nodejs#46727
  • Loading branch information
sankalp1999 committed May 25, 2023
1 parent b4d5f1f commit a24f544
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ class Test extends AsyncResource {
}

async run() {

this.reporter.start(this.nesting, kFilename, this.name + " starting... ");

if (this.parent !== null) {
this.parent.activeSubtests++;
}
Expand Down

0 comments on commit a24f544

Please sign in to comment.