[node:test] Incorrect `SuiteContext` description
Affected URL(s)
https://nodejs.org/docs/latest-v20.x/api/test.html#describename-options-fn
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 :-)