Files
uptime-kuma/test/backend-test
2026-01-01 08:25:14 +01:00
..
2025-12-20 16:32:49 +00:00

Node.js Test Runner

Documentation: https://nodejs.org/api/test.html

Create a test file in this directory with the name *.js.

Template

const test = require("node:test");
const assert = require("node:assert");

test("Test name", async (t) => {
    assert.strictEqual(1, 1);
});

Run

npm run test-backend