import assert from "node:assert/strict"; import process from "node:process"; import { runTests } from "./driver.js"; const err = x => process.stderr.write(x); const red = s => `\x1b[31m${s}\x1b[0m`; const green = s => `\x1b[32m${s}\x1b[0m`; const yellow = s => `\x1b[33m${s}\x1b[0m`; const conf = { err, assert, colors: { red, green, yellow, }, }; const main = async (path = process.argv[2]) => { const module = await import("../" + path); await runTests(conf, module.allTests); }; await main();