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

0.0.5 • Public • Published

liltest

A very very simple test runner for JavaScript and TypeScript that supports running in browser and in Node.

https://github.com/propelml/liltest

TypeScript Example

Create a file called mytest.ts

import { assert, assertEqual, test } from "liltest";
 
test(async function failingTest() {
  assertEqual([0, 1, 100], [0, 1, 2]);
});
 
test(async function workingTest() {
  assertEqual([0, 1, 2], [0, 1, 2]);
});

Run the test from Node by doing ts-node mytest.ts

Readme

Keywords

none

Package Sidebar

Install

npm i liltest

Weekly Downloads

6

Version

0.0.5

License

Apache-2.0

Unpacked Size

63.9 kB

Total Files

32

Last publish

Collaborators

  • ry