@ersbeth/picotest
v0.1.0
Published
Minimal test runner for JS/TS files
Downloads
10
Maintainers
Readme
PicoTest
Minimal test runner for javascript and typescript files. Uses esbuild under the hood for fast transpilation.
Installation
npm i -D @ersbeth/picotest
Usage
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