What is the problem this feature will solve?
expect() is a popular way of writing assertions. From what I've been able to tell, many developers prefer writing assertions in this style compared to the current assertion style provided by node:assert. Many batteries included test runners (Jest, Vitest, bun:test, etc.) expose this API.
What is the feature you are proposing to solve the problem?
node:assert exports the expect() API.
What alternatives have you considered?
Use the existing node:assert assertions or install expect() from npm.
What is the problem this feature will solve?
expect()is a popular way of writing assertions. From what I've been able to tell, many developers prefer writing assertions in this style compared to the current assertion style provided bynode:assert. Many batteries included test runners (Jest, Vitest, bun:test, etc.) expose this API.What is the feature you are proposing to solve the problem?
node:assertexports theexpect()API.What alternatives have you considered?
Use the existing
node:assertassertions or installexpect()from npm.