t0
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

t0

Modern ultra-lightweight test library.

Assertions not included to further clamp down on package size.

If you're looking for something more functional and complex, maybe this package is not for you.

Usage

import { test, run } from "t0"
 
test("foo", () => {
  // do some tests here
})
 
run()

test(title, testFn)

Register a test with the current context. Throw errors to fail tests.

Async functions are accepted.

The test title is required.

run()

Run all tests.

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i t0

    Weekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    12.3 kB

    Total Files

    11

    Last publish

    Collaborators

    • seangenabe