15 lines
545 B
TypeScript
15 lines
545 B
TypeScript
import { readFileSync } from "node:fs";
|
||
import { join } from "node:path";
|
||
import { describe, expect, it } from "vitest";
|
||
|
||
describe("routage Traefik", () => {
|
||
it("utilise le domaine fourni par l’environnement avec la recette comme repli", () => {
|
||
const composeFile = readFileSync(join(process.cwd(), "docker-compose.yml"), "utf8");
|
||
|
||
expect(composeFile).toContain(
|
||
"Host(`${APP_DOMAIN:-demat-facturation.recette.santinova-soft.org}`)"
|
||
);
|
||
expect(composeFile).toContain("demat_facturation_storage:/app/storage");
|
||
});
|
||
});
|