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', }, })