Allow using expect
from bun:test
outside of bun test
#8326
Labels
enhancement
New feature or request
expect
from bun:test
outside of bun test
#8326
What is the problem this feature would solve?
Allow us to use the assertion functions in runtime code.
bun run test.js
:What is the feature you are proposing to solve the problem?
There seems to be an assumption built into
expect
that thebun test
environment is what the function is being executed in. If that could be dropped or made optional, theexcept
could be just a utility function.What alternatives have you considered?
We can use Node's
assert
:The text was updated successfully, but these errors were encountered: