-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] Compatibility with bun
#27139
Comments
As of today Bun is not Node.js compatible, a lot of things are still missing or behaving different. This is not something we can act on/can improve. Once they are Node.js compatible and have the missing Node.js APIs implemented, we might reconsider putting a |
Do you have a list of APIs that are missing for Playwright? There appears to be quite a bit of logic that checks Node version. That's probably a show stopper to start. Not only will it not work with bun, it doesn't appear that it will work with Deno or alternative runtimes. |
@joshua-bn You can use bun with the playwright. It is already described in my blog post here. Despite "hello world" run I have a few tests on my current project and Buns does not give a big performance for playwright tests, since the playwright bottleneck performance - is sending commands in your browser via Chrome remote CDP API, which executes your code. |
@vitalics What command did you use to run the tests "with" bun? From my understanding
I think we will only get the issue when we run |
#26454 (comment) states:
I'm a user, and I am requesting interop with
bun
! 🙋😄I've just switched my largest project to
bun
(now thatbun
1.0 has been released), and everything works perfectly except running tests in Playwright.A lot of packages run in
bun
without issue, but bothbun
and Playwright have difficult jobs, so it's not surprising that there would be challenges. Likenpx playwright
, Bun supports TypeScript and running tests directly — so I think it's fair to say that a developer who likes the ergonomics of either would be a good candidate for interest in the other.oven-sh/bun#2492 documents many folks trying to use Playwright from
bun
, although I don't understand the situation well enough to help fix it. But if there is anything Playwright can do to help be more compatible inbun
, I'd be glad to be able to use that as soon as possible.The text was updated successfully, but these errors were encountered: