uptime-kuma/test/backend-test
2026-01-01 16:47:31 +01:00
..
monitor-conditions make sure we use test suites 2026-01-01 16:22:17 +01:00
monitors move websokcet 2026-01-01 16:35:26 +01:00
notification-providers move the webhook to a better place 2026-01-01 16:47:31 +01:00
README.md Removed now unnecessary version checking (#4815) 2024-08-24 18:38:50 +02:00
test-cert-hostname-match.js cert hostname 2026-01-01 16:39:00 +01:00
test-domain.js move the webhook to a better place 2026-01-01 16:47:31 +01:00
test-maintenance.js migrate maintenance to use suites 2026-01-01 16:37:03 +01:00
test-migration.js fix: Optimize heartbeat indexes containing important on sqlite using SQLite partial indexes (#6511) 2025-12-23 18:00:09 +00:00
test-uptime-calculator.js make sure the calculator uses a suite 2026-01-01 16:25:18 +01:00
test-util.js refactor the system utilities test 2026-01-01 16:42:56 +01: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