Files
jobtrackingapp/job-tracker-ui/src/nginx-config.test.ts
T

9 lines
343 B
TypeScript

import fs from "node:fs";
import path from "node:path";
test("canonical-host health reaches the backend instead of the SPA fallback", () => {
const config = fs.readFileSync(path.join(process.cwd(), "nginx.conf.template"), "utf8");
expect(config).toMatch(/location = \/health\s*{[^}]*proxy_pass http:\/\/backend-web:8080\/health;/s);
});