-
Notifications
You must be signed in to change notification settings - Fork 28.7k
New issue
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
t.assert is not a function #53449
Comments
I believe it means the |
If you are not intentionally exposing |
(As previously stated by @climba03003) |
I can confirm that it was not my plan for the |
Thanks for your answer ! |
Version
v22.3.0
Platform
Darwin CF0393.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Sep 29 20:13:56 PDT 2022; root:xnu-8020.240.7~1/RELEASE_ARM64_T6000 arm64
Subsystem
test_runner
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
t.assert
can be called as a function.What do you see instead?
Additional information
I read about
context.assert
of Test runner:https://nodejs.org/docs/latest/api/test.html#contextassert
And this doc says the following:
Is this difference intended ? (I feel it lacked consistency)
The text was updated successfully, but these errors were encountered: