Resourcemanagement/test/backend-test
2026-10-19 19:13:34 +05:30
..
monitor-conditions feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
monitors feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
notification-providers feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
check-translations.test.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
README.md feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-apicache.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-better-auth-disabled-paths.ts feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-better-auth.ts feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-cert-hostname-match.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-domain.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-globalping.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-migration-v1-to-v3.ts feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-migration-v2-to-v3.ts feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-migration.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-monitor-response.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-ntp.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-ping-chart.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-pm2.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-radius.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-snmp.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-status-page.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-system-service.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-uptime-calculator.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-util-server.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30
test-util.js feat: initialize project structure with core components, notifications, and database migrations 2026-10-19 19:13:34 +05:30

Node.js Test Runner

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

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

Tip

Writing great tests is hard.

You can make our live much simpler by following this guidance:

  • Use describe() to group related tests
  • Use test() for individual test cases
  • One test per scenario
  • Use descriptive test names: function() [behavior] [condition]
  • Don't prefix with "Test" or "Should"

Template

const { describe, test } = require("node:test");
const assert = require("node:assert");

describe("Feature Name", () => {
  test("function() returns expected value when condition is met", () => {
    assert.strictEqual(1, 1);
  });
});

Run

npm run test-backend