0.2.2 • Published 4 months ago

@holllo/test v0.2.2

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
-
Last release
4 months ago

@holllo/test ✅

Tiny testing library designed to run anywhere.

Example

import {setup} from "@holllo/test";

const add = (a: number, b: number): number => a + b;

await setup("add", async (group) => {
  group.test("1 + 1", async (test) => {
    test.equals(add(1, 1), 2);
  });

  group.test("2 + 2", async (test) => {
    test.equals(add(2, 2), 5);
  });
});
# add
- 1 + 1 passed
- 2 + 2 failed
  Failed equals assertion
  |   Actual: 4
  | Expected: 5

License

Distributed under the AGPL-3.0-or-later license, see LICENSE for more information.

0.2.2

4 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago