Minimal test runner for javascript and typescript files. Uses esbuild under the hood for fast transpilation.
npm i -D @ersbeth/picotest
Create some test files in a folder:
import { Test } from "@ersbeth/picotest";
import assert from "node:assert/strict";
const test = Test.fromUrl(import.meta.url);
test.add("case 1", () => {
assert.ok(true);
});
test.add("case 2", () => {
assert.ok(true);
});
test.run();
Then run your tests:
npx picotest ./path-to-my-folder