This Worker makes use of a WebAssembly module to add two numbers together. Wrangler's default module rules are enabled by @cloudflare/vitest-pool-workers
if you have a wrangler.configPath
configured. This means .wasm
files can be imported as WebAssembly.Module
s.
Test | Overview |
---|---|
add.test.ts | Integration test using SELF |