mirror of
https://github.com/remko/waforth
synced 2025-01-16 15:41:07 +01:00
9 lines
298 B
JavaScript
9 lines
298 B
JavaScript
/* global __dirname */
|
|
const fs = require("fs");
|
|
const path = require("path");
|
|
require("@babel/register")({
|
|
presets: ["@babel/preset-env"]
|
|
});
|
|
const loadTests = require("./tests.js").default;
|
|
const wasmModule = fs.readFileSync(path.join(__dirname, "../src/waforth.wasm"));
|
|
loadTests(wasmModule);
|