Thanks Adam! I got to try it out this

Thanks Adam! I got to try it out this morning after sending that message and it felt really good. I wrote a thing using Miniflare 3, Prisma and Vitest https://github.com/vladinator1000/prisma-vitest-miniflare
4 Replies
Adam
Adam9mo ago
I'll check it out! Let us know if you have any feedback. In case you didn't see it, this PR (https://github.com/cloudflare/workers-sdk/pull/5060) updates the required Vitest version, and also introduces support for config via wrangler.toml.
GitHub
[vitest-pool-workers] Bump to [email protected] and add support for `w...
What this PR solves / how to test: This PR includes a few assorted improvements to the Workers Vitest pool: Bumps the pinned supported version to 1.3.0 Ensures we always treat @cloudflare/vitest-p...
Adam
Adam9mo ago
@Vlady make sure to check out the repo I sent. It's different than the current vitest-environment-miniflare that you have in your repo. It uses Vitest's new pooling functionality, and runs tests in the actual workerd runtime instead of a node process.
Vlady
VladyOP9mo ago
I finally found the time and gave it a whirl 😍 found an issue relating to node compatibility: https://github.com/cloudflare/workers-sdk/issues/5127
GitHub
🐛 BUG: vitest-pool-workers compatibility issue "TypeError: deprecat...
Which Cloudflare product(s) does this pertain to? Wrangler core What version(s) of the tool(s) are you using? 3.30.1 What version of Node are you using? v21.6.1 What operating system and version ar...
Adam
Adam9mo ago
Thanks so much! We'll take a look. Here are the in-progress docs in case you're interested: https://admah-vitest-pool-docs.cloudflare-docs-7ou.pages.dev/workers/testing/vitest/ This hasn't been released to npm, so the package doesn't exist there yet. Keep using the pre-release for now.
Cloudflare Docs
Vitest · Cloudflare Workers docs
Test and debug your Worker projects via Vitest.
Want results from more Discord servers?
Add your server