fix: exit with code 1 when no test fixtures found

Per CodeRabbit review - quality gate scripts should fail on unexpected states
This commit is contained in:
cx-noam-brendel 2026-01-15 08:49:06 +02:00 committed by Noam Brendel
parent 6bf6a2b6d2
commit b46e20dc3a
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ async function main() {
if (testFiles.length === 0) { if (testFiles.length === 0) {
console.log(`${colors.yellow}⚠️ No test fixtures found${colors.reset}`); console.log(`${colors.yellow}⚠️ No test fixtures found${colors.reset}`);
process.exit(0); process.exit(1);
} }
console.log(`Found ${colors.cyan}${testFiles.length}${colors.reset} test fixture(s)\n`); console.log(`Found ${colors.cyan}${testFiles.length}${colors.reset} test fixture(s)\n`);