Tiny testing library designed to run anywhere. https://www.npmjs.com/package/@holllo/test
Go to file
Bauke 30fc15fb8d
Version 0.2.2!
2024-01-27 13:10:20 +01:00
source Update dependencies and fix linting issues. 2024-01-27 13:06:54 +01:00
tests Use top-level await everywhere. 2024-01-27 13:04:24 +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
Makefile.toml Switch from npm scripts to cargo-make tasks. 2024-01-27 13:00:48 +01:00
README.md Use top-level await everywhere. 2024-01-27 13:04:24 +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.2! 2024-01-27 13:10:20 +01:00
pnpm-lock.yaml Update dependencies and fix linting issues. 2024-01-27 13:06:54 +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;

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.