Repository navigation
Universal packages (Such as testing) #45181
trymeouteh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Please make bun:test a universal testing package and other new packages as universal packages for all JS runtimes.
This can be done by releasing
bun:testas a npm package that can be used in NodeJS and perhaps Deno. Or by allowing you to import it asruntime:testby makingruntime:___packages a universal standard for all JS runtimes, and other JS runtimes can supportruntime:___packages if they so wish.For testing, I been using Vitest only because it is not apart of any JS runtime, but Bun comes with many build in things such as
bun:testa feature rich test runner package.Unfortunately because of Bun and Deno coming into the JS runtime scene it has cause a fragmentation of JS tools. We have Vitest, Jest, node:test, deno.test, bun:test for testing alone. Bun test is currently only for Bun, deno.test is currently only for deno, Vitest works with multiple runtimes but needs to be installed separately.
Perhaps a browser testing tool can be included into
bun:testorruntime:test?All reactions