test(image-pipeline): tighten parity quality gates

This commit is contained in:
Matthias
2026-04-04 22:25:45 +02:00
parent 455458cb1e
commit c4ca4b001b
3 changed files with 238 additions and 4 deletions

View File

@@ -174,6 +174,8 @@ describe("webgl backend poc", () => {
}
it("selects webgl for preview when webgl is available and enabled", async () => {
// Parity gate in jsdom with mocked WebGL verifies backend contract behavior,
// not GPU-driver conformance.
enforceCpuWebglParityGates();
const webglPreview = vi.fn();
@@ -227,6 +229,7 @@ describe("webgl backend poc", () => {
});
it("uses cpu for every step in a mixed pipeline request", async () => {
// Keep backend-contract parity gate explicit for mocked jsdom runs.
enforceCpuWebglParityGates();
vi.doMock("@/lib/image-pipeline/backend/feature-flags", async () => {