We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SuiteContext
https://nodejs.org/docs/latest-v20.x/api/test.html#describename-options-fn
Docs said that callback function in describe:
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 :-)
The text was updated successfully, but these errors were encountered:
test: fix suite signal
3cf05be
PR-URL: #47800 Fixes: #47882 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
a80dd3a
d6076b9
7b816b4
PR-URL: nodejs#47800 Fixes: nodejs#47882 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Successfully merging a pull request may close this issue.
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
:But in fact the first argument is array with
SuiteContext
:Related to #45641 :-)
The text was updated successfully, but these errors were encountered: