diff --git a/test/default/wasi-test-wrapper.sh b/test/default/wasi-test-wrapper.sh index be6abdd4..112f8824 100755 --- a/test/default/wasi-test-wrapper.sh +++ b/test/default/wasi-test-wrapper.sh @@ -44,6 +44,7 @@ if [ -z "$WASI_RUNTIME" ] || [ "$WASI_RUNTIME" = "bun" ]; then echo " const wasm = await WebAssembly.compile(fs.readFileSync('${1}'));" echo " await wasi.instantiate(wasm, {});" echo " wasi.start();" + echo " console.log(wasi.getStdoutString());" echo "})().catch(e => { console.error(e); process.exit(1); });" } >"${1}.mjs" bun run "${1}.mjs" 2>/tmp/err &&