[node:test] Incorrect `SuiteContext` description
Affected URL(s)
https://nodejs.org/docs/latest-v18.x/api/test.html#describename-options-fn
Description of the problem
Docs said that tha callback function in describe:
declaring all subtests and subsuites. The first argument to this function is a SuiteContext object.
But in fact SuiteContext is not the first argument. SuiteContext is this context:
import { describe } from 'node:test' describe(function(foo) { console.log('First argument: ', foo) console.log('this: ', this) }) > First argument: [] > this: { signal: AbortSignal { aborted: false }, name: '<anonymous>' }