Skip to content
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

Feature request: Support Bun and bun:test #3220

Open
vjpr opened this issue May 23, 2023 · 6 comments
Open

Feature request: Support Bun and bun:test #3220

vjpr opened this issue May 23, 2023 · 6 comments

Comments

@vjpr
Copy link

vjpr commented May 23, 2023

Bun is a new JavaScript runtime.

bun:test is its test runner.

See: https://bun.sh/docs/cli/test

Related

#2487 - Deno support

vs Deno

It might be easier than Deno, because there is a transpiler api: https://bun.sh/docs/api/transpiler

@lgandecki
Copy link

for the meantime, since the test framework is compatible with Jest, we could just use nodejs and run the tests through jest?
If it could work for majority of things (I'd expect unit tests in general to not touch the parts where nodejs and bun are different) it would already be a huge win

@smcenlly
Copy link
Member

Thanks for the feature request.

To fully support Bun in our tools, we require certain enhancements in Bun itself. We have been actively exploring collaboration opportunities with the Bun team to make the changes we need. While we aim to bring this support as soon as possible, we appreciate your understanding that timelines might vary based on various factors, some of which are outside of our control.

We will post here when we have updates to share.

@barnesoir
Copy link

barnesoir commented Nov 30, 2023

With bun having been > v1.0.0 for some time now, it'd be great to get bun support instead of having to bodge bun projects

@mattapperson
Copy link

Adding another +1 for this as buns speed is also a factor as it would mean faster tests

@KerickHowlett
Copy link

KerickHowlett commented Jun 12, 2024

I'm also adding my own +1.

Are there any updates on this?

What is it that y'all need Bun to have implemented, exactly?

@smcenlly
Copy link
Member

@KerickHowlett

We don't have any updates to share at this time, but adding support for bun is on our short-term roadmap.

We're a little blocked at the moment because there is no first class way for us to transform code before it runs in bun (see oven-sh/bun#2729). We can almost certainly work around this in a number of ways, but it adds a lot of complexity to our integration, which we'd prefer to avoid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants