Comments (5)
I believe it means the functions
inside assert
is exposed instead of mirroring the whole assert
.
from node.
I can confirm that it was not my plan for the t.assert
object to be the assert()
function. Whether that is something we want to support or not - I don't have an opinion either way, as long as it is implemented in a way that the t.assert
function could be changed in the future programmatically. I would still like to add an API for decoupling t.assert
from the assert
module (snapshot tests were the proof of concept for that).
from node.
I can confirm that it was not my plan for the t.assert object to be the assert() function.
Thanks for your answer !
from node.
If you are not intentionally exposing t.assert()
, you may close this issue.
from node.
An object containing assertion methods bound to context. The top-level functions from the node:assert module are exposed here for the purpose of creating test plans.
t.assert
isn't a function, but an object, try logging it in the console to see what it can do
(As previously stated by @climba03003)
from node.
Related Issues (20)
- ERR_UNKNOWN_BUILTIN_MODULE attempting to `require('node:sqlite')` in v22.5.0 HOT 8
- document that using `node:sqlite` requires `--experimental-sqlite` flag
- Incorrect slice() from fs.openAsBlob() HOT 6
- Unable to print correctly, inconsistent with the browser HOT 13
- segfault in generated sea executable HOT 4
- Start adding .asc signature files for tar files to validate signature HOT 5
- Assertion Failed in node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start() HOT 2
- Error: Cannot find module '..' HOT 1
- node:readline support reading non printable characters such as group separator
- Tracking issue: stabilization of test runner code coverage HOT 1
- yarn.lock file does not get created in nearly all the cases HOT 1
- http.server.close() closes idle connections in v20 and v21 HOT 3
- Node 22.5.0 breaks yarn install (1.22.22) HOT 2
- node: --run requires an argument HOT 10
- Tracking issue: Stabilizing network inspection in Node.js
- DNS Lookups Failing After Updating to Latest Node 20 and 18 for IBM i HOT 11
- readability/pointer is inaccurate HOT 1
- yarn install fail on node:latest HOT 2
- `parallel/test-assert-esm-cjs-message-verify` is flaky HOT 3
- For whatever reason, VS Code was not actually importing my user or system environment variables. I copied and pasted my system path and added in the necessary escape keys, restarted VS code, and was able to successfully use Node commands. So it seems this was actually more of a VS code issue, rather than a Node.js issue. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node.