@ersbeth/picotest
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i @ersbeth/picotest

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

10.5 kB

Total Files

6

Last publish

Collaborators

  • erousset