oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.65k stars 2.72k forks source link

Running vitest with --bun flag hangs "bun run --bun vitest"❌ "bun run vitest" ✅ #10180

Open cpakken opened 6 months ago

cpakken commented 6 months ago

What version of Bun is running?

1.1.3+2615dc742

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64 EDIT: also tested in WSL same behavior

What steps can reproduce the bug?

Use minimal reproduction https://github.com/cpakken/vitest-issue

image

Also windows firewall for bun pops up while running with --bun command. Does not work even when allowed.

What is the expected behavior?

Should work

What do you see instead?

Hangs when vitest is run with --bun

cpakken commented 6 months ago

Confirmed same behavior in WSL

bun create github.com/cpakken/vitest-issue
cd vitest-issue
bun run vitest #works
bun run -b vitest #hangs

image


> bun --revision
1.1.3+2615dc742
> uname -mprs
Linux 5.15.146.1-microsoft-standard-WSL2 x86_64 x86_64