Skip to content

Commit

Permalink
test_runner:add test:lifecycle:run event at run()
Browse files Browse the repository at this point in the history
  • Loading branch information
sankalp1999 committed May 25, 2023
1 parent 942d9a0 commit ee93ebc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/internal/test_runner/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class Test extends AsyncResource {
this.nesting = 0;
this.only = testOnlyFlag;
this.reporter = new TestsStream();
this.reporter.begin(this.nesting, kFilename, this.testNumber, this.name, "starting", "starting");
this.reporter.begin(this.nesting, kFilename, this.testNumber, this.name, 'starting', 'starting');
this.runOnlySubtests = this.only;
this.testNumber = 0;
this.timeout = kDefaultTimeout;
Expand Down Expand Up @@ -780,6 +780,8 @@ class Suite extends Test {
}

async run() {
this.reporter.begin(this.nesting, kFilename, this.testNumber, this.name, 'starting', 'starting');

const hookArgs = this.getRunArgs();

try {
Expand Down

0 comments on commit ee93ebc

Please sign in to comment.