~/talk

Testing Alternative Runtimes with Node and Vitest

watch on portal.gitnation.org ↗https://portal.gitnation.org/contents/testing-alternative-runtimes-with-node-and-vitest
Talkat Node Congress 2024 · on Thursday, 2024-04-04· at 18:20· [nodejs, webassembly]

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

~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.