mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-12-25 13:12:35 -05:00
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> |
||
|---|---|---|
| .. | ||
| monitor-conditions | ||
| README.md | ||
| test-cert-hostname-match.js | ||
| test-domain.js | ||
| test-grpc.js | ||
| test-maintenance.js | ||
| test-migration.js | ||
| test-mqtt.js | ||
| test-postgres.js | ||
| test-rabbitmq.js | ||
| test-tcp.js | ||
| test-uptime-calculator.js | ||
| test-util.js | ||
| test-websocket.js | ||
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