From 2fc9b4c31fc9adc3e40b294c0be0a685b4f77096 Mon Sep 17 00:00:00 2001 From: Test Date: Wed, 8 Apr 2026 17:53:49 +0200 Subject: [PATCH] fix: isolate pre-push smoke server --- .codescene-thresholds | 4 ++-- .husky/pre-push | 9 ++------- playwright.smoke.config.ts | 3 +++ 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.codescene-thresholds b/.codescene-thresholds index 922c284d..1cd8e36e 100644 --- a/.codescene-thresholds +++ b/.codescene-thresholds @@ -1,2 +1,2 @@ -HOTSPOT_THRESHOLD=9.45 -AVERAGE_THRESHOLD=9.29 +HOTSPOT_THRESHOLD=9.68 +AVERAGE_THRESHOLD=9.3 diff --git a/.husky/pre-push b/.husky/pre-push index 779f2255..2d76af4b 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -156,14 +156,9 @@ echo "" SMOKE_FILES=$(find tests/smoke tests/integration -name '*.spec.ts' 2>/dev/null | head -1) if [ -n "$SMOKE_FILES" ]; then echo "🎭 [4/5] Playwright core smoke tests..." - set +e - SMOKE_OUTPUT=$(pnpm playwright:smoke 2>&1) - SMOKE_STATUS=$? - set -e - echo "$SMOKE_OUTPUT" | tail -20 - if [ "$SMOKE_STATUS" -ne 0 ]; then + if ! pnpm playwright:smoke; then echo " ❌ Core smoke tests FAILED" - exit "$SMOKE_STATUS" + exit 1 fi echo " ✅ Core smoke tests OK" else diff --git a/playwright.smoke.config.ts b/playwright.smoke.config.ts index cdc640b8..e74fb64c 100644 --- a/playwright.smoke.config.ts +++ b/playwright.smoke.config.ts @@ -19,5 +19,8 @@ export default defineConfig({ command: `pnpm dev --host 127.0.0.1 --port ${port} --strictPort`, url: baseURL, reuseExistingServer, + timeout: 30_000, + stdout: 'pipe', + stderr: 'pipe', }, })