9 lines
345 B
TypeScript
9 lines
345 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*{[\s\S]*?proxy_pass http:\/\/backend-web:8080\/health;/);
|
|
});
|