We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35a76b4 commit c39b635Copy full SHA for c39b635
packages/wrangler/e2e/unenv-preset/worker/index.ts
@@ -573,4 +573,13 @@ export const WorkerdTests: Record<string, () => void> = {
573
assert.throws(() => cluster.disconnect(), /not implemented/);
574
assert.throws(() => cluster.fork(), /not implemented/);
575
},
576
+
577
+ async testWasi() {
578
+ const wasi = await import("node:wasi");
579
580
+ assert.strictEqual(typeof wasi.WASI, "function");
581
582
+ assert.throws(() => new wasi.WASI({}), /not implemented/);
583
+ assert.throws(() => new wasi.WASI({ version: "preview1" }), /not implemented/);
584
+ },
585
};
0 commit comments