Рет қаралды 10,019
Node Congress 2024 #NodeCongress #GitNation
Website - nodecongress.com/
Follow the link to watch the full version of all the conference talks, QnA’s with speakers and hands-on workshop recordings → portal.gitnation.org/events/n...
Talk: Testing Alternative Runtimes with Node and Vitest
Description: A deep dive into how we built support for running Vitest tests in the Cloudflare Workers runtime. We'll start by giving an overview of the Cloudflare developer platform, including our open-source workerd JavaScript runtime and local simulator Miniflare. Next we'll talk about how Vitest works and provides support for custom runtimes, using Node.js as a driver to run tests in another environment. We'll describe the specifics of our custom Vitest pool, and how we added support for dynamic code evaluation to our runtime. Finally we'll talk about how we improved developer ergonomics with isolated per-test storage, test helpers for accessing Durable Object instances directly, and support for declarative HTTP request mocking., and how we created a service to build types for users' specific compatibility settings.
This event would not take place without the support of sponsors:
🏆 Platinum Sponsors
Cloudflare → pages.cloudflare.com/
🥇 Gold Sponsors
Sentry → sentry.io/welcome/?
Focus Reactive → focusreactive.com/