-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Closed
Labels
good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.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 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>' }Metadata
Metadata
Assignees
Labels
good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.test_runnerIssues and PRs related to the test runner subsystem.Issues and PRs related to the test runner subsystem.