Skip to content

test_runner: incorrect test:pass & test:fail events description, 'duration' instead of 'duration_ms' #48887

Closed
@koshic

Description

Affected URL(s)

https://nodejs.org/dist/latest/docs/api/test.html

Description of the problem

Docs:

image

Reality:

report() {
countCompletedTest(this);
if (this.subtests.length > 0) {
this.reporter.plan(this.subtests[0].nesting, kFilename, this.subtests.length);
} else {
this.reportStarted();
}
let directive;
const details = { __proto__: null, duration_ms: this.#duration() };

@types/node also contains wrong object shape.

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions