0.1.0 • Published 1 year ago

@ersbeth/picotest v0.1.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
1 year ago

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
0.1.0

1 year ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago