uptime-kuma/test/backend-test
Copilot af5fd5488d
fix: Optimize heartbeat indexes containing important on sqlite using SQLite partial indexes (#6511)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
Co-authored-by: CommanderStorm <26258709+CommanderStorm@users.noreply.github.com>
2025-12-23 18:00:09 +00:00
..
monitor-conditions Monitor Conditions (#5048) 2024-08-30 21:48:13 +02:00
README.md Removed now unnecessary version checking (#4815) 2024-08-24 18:38:50 +02:00
test-cert-hostname-match.js Feat: Add warning for cert. hostname mismatch (#3942) 2025-12-01 10:12:47 +08:00
test-domain.js feat: Domain name expiry (#6413) 2025-12-20 16:32:49 +00:00
test-grpc.js migrated grpc keyword to the newer monitoringtype (#4821) 2025-11-29 23:21:45 +08:00
test-maintenance.js fix: MariaDB datetime format error when pausing maintenance (#6513) 2025-12-22 14:32:12 +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-mqtt.js Allow MQTT topic to have wildcards (# or +) (#5398) 2025-10-26 20:36:47 +01:00
test-postgres.js Extracted the postgresql monitor to its own monitor-type (#6443) 2025-12-04 14:16:06 +00:00
test-rabbitmq.js Enforce UP status for non-custom status monitors (#6433) 2025-11-28 20:25:06 +08:00
test-tcp.js feat: Add XMPP dialog in STARTTLS routine (#6508) 2025-12-20 12:35:53 +00:00
test-uptime-calculator.js Removed now unnecessary version checking (#4815) 2024-08-24 18:38:50 +02:00
test-util.js feat: Domain name expiry (#6413) 2025-12-20 16:32:49 +00:00
test-websocket.js Enforce UP status for non-custom status monitors (#6433) 2025-11-28 20:25:06 +08: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