Tiny testing library designed to run anywhere. https://www.npmjs.com/package/@holllo/test
Go to file
Bauke 373d85a17b
Add Nix flake and direnv files.
2024-01-27 12:53:52 +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
.envrc Add Nix flake and direnv files. 2024-01-27 12:53:52 +01:00
.gitignore Add Nix flake and direnv files. 2024-01-27 12:53:52 +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
flake.lock Add Nix flake and direnv files. 2024-01-27 12:53:52 +01:00
flake.nix Add Nix flake and direnv files. 2024-01-27 12:53:52 +01:00
package.json Version 0.2.1! 2022-12-28 13:19:36 +01:00
pnpm-lock.yaml Add project configuration files. 2022-12-22 13:52:49 +01:00
shell.nix Add Nix flake and direnv files. 2024-01-27 12:53:52 +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.