blob: 775ffb7a8b41971ef7eeafad352843c9010ec35f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Node.js Test Runner
Documentation: https://nodejs.org/api/test.html
Create a test file in this directory with the name `*.js`.
## Template
```js
const test = require("node:test");
const assert = require("node:assert");
test("Test name", async (t) => {
assert.strictEqual(1, 1);
});
```
## Run
```bash
npm run test-backend
```
|