test(release): strengthen production verification
This commit is contained in:
@@ -4,5 +4,5 @@ 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);
|
||||
expect(config).toMatch(/location = \/health\s*{[\s\S]*?proxy_pass http:\/\/backend-web:8080\/health;/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user