Tiny testing library designed to run anywhere. https://www.npmjs.com/package/@holllo/test
Go to file
Bauke 355efe1233
Version 0.2.0!
2022-12-28 13:13:03 +01:00
source Add a false assertion. 2022-12-27 21:03:27 +01:00
tests Add a false assertion. 2022-12-27 21:03:27 +01:00
.gitignore Initial commit! 2022-12-22 13:29:08 +01:00
LICENSE Initial commit! 2022-12-22 13:29:08 +01:00
README.md Add project configuration files. 2022-12-22 13:52:49 +01:00
esbuild.ts Add project configuration files. 2022-12-22 13:52:49 +01:00
package.json Version 0.2.0! 2022-12-28 13:13:03 +01:00
pnpm-lock.yaml Add project configuration files. 2022-12-22 13:52:49 +01:00
tsconfig.json Add project configuration files. 2022-12-22 13:52:49 +01:00
vite.config.ts Add project configuration files. 2022-12-22 13:52:49 +01:00

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.