Tiny testing library designed to run anywhere.
https://www.npmjs.com/package/@holllo/test
Bauke 355efe1233 | ||
---|---|---|
source | ||
tests | ||
.gitignore | ||
LICENSE | ||
README.md | ||
esbuild.ts | ||
package.json | ||
pnpm-lock.yaml | ||
tsconfig.json | ||
vite.config.ts |
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.