Tiny testing library designed to run anywhere. https://www.npmjs.com/package/@holllo/test
Go to file
Bauke 2e844596bd
Version 0.1.0!
2022-12-22 14:00:24 +01:00
source Add source code. 2022-12-22 14:00:03 +01:00
tests Add source code. 2022-12-22 14:00:03 +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.1.0! 2022-12-22 14:00:24 +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.