-
Notifications
You must be signed in to change notification settings - Fork 833
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 Vitest versions above 1.5 in @cloudflare/vitest-pool-workers
#6071
Comments
@m-shaka - is this in terms of writing tests using the What would the behaviour be for loading files in a Worker? |
Thank you for your quick response. Here is a minimum repro. I'm not sure what Vitest is doing there, probably it's about executing test files |
I found cloudflare/workerd#2147
After I added
|
Thanks for reporting this! We'll follow up with the Vitest team to find a path forward here |
readFileSync
[vitest-pool-workers]@cloudflare/vitest-pool-workers
Closing in favour of #6215 |
Describe the solution
Node.js polyfill of
readFileSync
is not yet implemented, but Vitest@1.6.x usesreadFileSync
.https://github.com/vitest-dev/vitest/blob/6b29f3ddc86060cf3265959d4ae32e90b186cb92/packages/vitest/src/runtime/execute.ts#L110
It's a barrier to supporting Vitest@1.6.x.
Is there any problem with implementing it? Can I help you?
The text was updated successfully, but these errors were encountered: