diff --git a/script/test b/script/test index ecf2fdc..19d66e4 100755 --- a/script/test +++ b/script/test @@ -8,8 +8,12 @@ echo "=== Running Rust tests ===" cargo test --manifest-path "$PROJECT_ROOT/Cargo.toml" echo "=== Running frontend unit tests ===" -cd "$PROJECT_ROOT/frontend" -npm test +if [ -d "$PROJECT_ROOT/frontend" ]; then + cd "$PROJECT_ROOT/frontend" + npm test +else + echo "Skipping frontend tests (no frontend directory)" +fi # Disabled: e2e tests may be causing merge pipeline hangs (no running server # in merge workspace → Playwright blocks indefinitely). Re-enable once confirmed.