Tiny testing library designed to run anywhere. https://www.npmjs.com/package/@holllo/test
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Bauke 25547cbbbb
Version 0.2.1!
1 month ago
source Add a false assertion. 1 month ago
tests Add a false assertion. 1 month ago
.gitignore Initial commit! 2 months ago
LICENSE Initial commit! 2 months ago
README.md Add project configuration files. 2 months ago
esbuild.ts Add project configuration files. 2 months ago
package.json Version 0.2.1! 1 month ago
pnpm-lock.yaml Add project configuration files. 2 months ago
tsconfig.json Add project configuration files. 2 months ago
vite.config.ts Add project configuration files. 2 months ago

README.md

@holllo/test

Tiny testing library designed to run anywhere.

Example

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

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

void 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.