fix: isolate pre-push smoke server

This commit is contained in:
Test
2026-04-08 17:53:49 +02:00
parent db1a99bc44
commit 2fc9b4c31f
3 changed files with 7 additions and 9 deletions

View File

@@ -1,2 +1,2 @@
HOTSPOT_THRESHOLD=9.45
AVERAGE_THRESHOLD=9.29
HOTSPOT_THRESHOLD=9.68
AVERAGE_THRESHOLD=9.3

View File

@@ -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

View File

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