Skip to content

Commit

Permalink
test: copy wasm fixtures to allow running in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 29, 2023
1 parent 75ac8a7 commit 3f51f39
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions test/fixture/dynamic-import.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { sum } = await import("@fixture/wasm/examples/sum.wasm");
const { sum } = await import("@fixture/wasm/sum.wasm");

const { imports } = await import("./_shared.mjs");
const { rand } = await import("@fixture/wasm/examples/rand.wasm").then((r) =>
const { rand } = await import("@fixture/wasm/rand.wasm").then((r) =>
r.default(imports),
);

Expand Down
4 changes: 2 additions & 2 deletions test/fixture/static-import.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { imports } from "./_shared.mjs";
import { sum } from "@fixture/wasm/examples/sum.wasm";
import initRand, { rand } from "@fixture/wasm/examples/rand.wasm";
import { sum } from "@fixture/wasm/sum.wasm";
import initRand, { rand } from "@fixture/wasm/rand.wasm";

await initRand(imports);

Expand Down
1 change: 0 additions & 1 deletion test/node_modules/@fixture/wasm/examples

This file was deleted.

2 changes: 1 addition & 1 deletion test/node_modules/@fixture/wasm/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added test/node_modules/@fixture/wasm/rand.wasm
Binary file not shown.
Binary file added test/node_modules/@fixture/wasm/sum.wasm
Binary file not shown.

0 comments on commit 3f51f39

Please sign in to comment.