1 | # `@fromdeno/test`
|
2 |
|
3 | Minimal test runner, compatible with `Deno.test()`.
|
4 |
|
5 | [![cli](https://badgen.net/badge/icon/terminal?icon=terminal&label&labelColor=blue)](https://github.com/fromdeno/test/blob/main/src/cli_help.txt)
|
6 | [![api](https://img.shields.io/static/v1?label&message=api&color=08C&logo=Node.js&logoColor=white)](https://github.com/fromdeno/test/blob/main/src/api.d.ts)
|
7 | [![install size](https://packagephobia.com/badge?p=@fromdeno/test)](https://packagephobia.com/result?p=@fromdeno/test)
|
8 |
|
9 | ```js
|
10 | // @filename: test/example_test.js
|
11 | const assert = require("assert/strict");
|
12 | const { test } = require("@fromdeno/test");
|
13 |
|
14 | test("example", () => {
|
15 | assert.equal(2 + 2, 4);
|
16 | });
|
17 | ```
|
18 |
|
19 | ```sh
|
20 | $ npm install --save-dev @fromdeno/test
|
21 | $ fdt test/example_test.js
|
22 | ```
|