test(e2e): relax kitchen-sink diagnostic exhaustiveness

This commit is contained in:
Peter Steinberger
2026-05-03 04:25:09 +01:00
parent 5f5e0a3633
commit 9891f30422

View File

@@ -174,7 +174,7 @@ function assertExpectedDiagnostics(surfaceMode, errorMessages) {
throw new Error(`unexpected kitchen-sink diagnostic error: ${message}`);
}
}
if (surfaceMode === "full") {
if (surfaceMode === "full" && process.env.KITCHEN_SINK_REQUIRE_ALL_DIAGNOSTICS === "1") {
for (const message of expectedErrorMessages) {
if (!errorMessages.has(message)) {
throw new Error(`missing expected kitchen-sink diagnostic error: ${message}`);