-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.
Description
Affected URL(s)
Description of the problem
Docs said that callback function in describe:
declaring all subtests and subsuites. The first argument to this function is a SuiteContext object.
But in fact the first argument is array with SuiteContext:
import { describe } from 'node:test'
x.describe(function (suiteContext) {
console.log(Array.isArray(suiteContext)) // true
console.log(suiteContext[0]) // SuiteContext {}
})Related to #45641 :-)
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.