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 d5ad6e1 commit ce2e1caCopy full SHA for ce2e1ca
2 files changed
rfc.config.json
@@ -15,7 +15,7 @@
15
},
16
"runOptions": {
17
"runtime": {
18
- "cmd": "wago <file>"
+ "cmd": "node ./scripts/run-as-test-wasi.mjs <file>"
19
}
20
21
"modes": {
scripts/run-as-test-wasi.mjs
@@ -0,0 +1,8 @@
1
+import { instantiate } from "as-test/lib";
2
+
3
+const wasmPath = process.argv[2];
4
+if (!wasmPath) throw new Error("Expected a WebAssembly test file path");
5
6
+process.env.AS_TEST_WASM_PATH = wasmPath;
7
+const instance = await instantiate({});
8
+instance.exports.start?.();
0 commit comments