-
Notifications
You must be signed in to change notification settings - Fork 2.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
Support Vitest #4145
Comments
It seems like the export default console Might also have to export the named Console in order to be node compatible. |
Console issue you are seeing is #3625. It's a constructor that returns a console object that has stdout/stderr redirected |
Any workarounds? |
might also be worth to know that Vitest itself also have a PR, in draft, to support Bun by using ShadowRealm with this description
|
console.console is implemented in the next release |
It's progress, but I get this: vitest on main [!?]
➜ bun --bun x vitest
DEV v0.34.4 /Users/admin/repos/vitest
[bun] Warning: worker_threads.Worker option "argv" is not implemented.
[bun] Warning: worker_threads.Worker option "execArgv" is not implemented.
[bun] Warning: worker_threads.Worker option "resourceLimits" is not implemented. |
Those warning can be ignored, see https://github.com/tinylibs/tinypool/pull/70/files#diff-478191b8d0c43c3d24bfda206ff15909923b8b5a89eec9c967376feded4edfa7R9 |
have the same:
and cant ignore tests doesnt finish and get this if i want cancel need to do it 1000 times before exit:
|
I have same problem |
Hmm... if I now make a small test file like this , and run, it seems to just freeze: ➜ bun --bun x vitest
DEV v1.1.1 /Users/admin/repos/histoire-vue3-starter |
The argument implementation warning was removed in version 1.0.22, but vitest still doesn't work. |
Getting this error while running OS: Darwin 23.1.0 arm64 arm Bun v1.0.35, Vitest v1.4.0
|
Maybe interesting fact: if you take the node:20 docker image and install bun there, then our if we use the oven:bun image it just hangs. |
With the node one, does it pass with the '--bun' flag? |
Sadly |
I know bun has a competing https://2023.stateofjs.com/en-US/libraries/#tools_arrows |
Still issue with vitest 2.x / bun 1.1.22-canary.85+cacbaba52 ➜ bun --bun x vitest
DEV v2.0.5 |
+1 |
1 similar comment
+1 |
Vitest - website - github
What version of Bun is running?
0.8.1
What platform is your computer?
Darwin 22.5.0 arm64 arm
What steps can reproduce the bug?
bun --bun x vitest
What is the expected behavior?
No error
What do you see instead?
SyntaxError: Import named 'Console' not found in module 'node:console'.
Additional information
Related to:
The text was updated successfully, but these errors were encountered: