Testing Alternative Runtimes with Node and Vitest
watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/testing-alternative-runtimes-with-node-and-vitestsummary
Covers building Vitest support for Cloudflare Workers by integrating workerd (Cloudflare’s open-source JS runtime) and the Miniflare simulator, using Vitest’s custom runtime hooks and a Node.js driver to execute tests in the Workers environment. Describes implementing a custom Vitest pool, adding dynamic code evaluation to the runtime, and improving ergonomics with isolated per-test storage, test helpers for Durable Objects, declarative HTTP request mocking, and a service to build types for user compatibility settings.
AI-written summary · about
related talks
31mGreat Expectations – Understanding nodejs Testing Frameworks
31mNodeJS: Supercharge Your Integration Tests with Vitest, Testcontainers and PGlite
40mIt's Not Just Node.js Anymore
25mTesting in production: Ideas, experiences, limits, roadblocks
29mJavaScript's Journey to the Edge
07mBuilding a Node js runtime for the browser
27mBuilt-in Tests with Node.js
43mIntegration testing a cloud native application with JavaScript|