aboutsummaryrefslogtreecommitdiff
path: root/packages/bun-wasm/test/node.mjs
blob: 2699a1dad7af3a8d0386d657f86b799bfb8ecbe3 (plain) (blame)
1
2
3
4
5
6
7
import { readFileSync } from "fs";
import { init, getTests } from "../index.mjs";

const buf = (process.argv.length > 2 ? readFileSync(process.argv.at(-1)) : "") || readFileSync(import.meta.url);
await init(new URL("../bun.wasm", import.meta.url));

console.log(getTests(buf));