diff --git a/AINative_OKR_CASAN5/.specify/scripts/bash/security-gate.sh b/AINative_OKR_CASAN5/.specify/scripts/bash/security-gate.sh index 7b386b4..016ecdc 100755 --- a/AINative_OKR_CASAN5/.specify/scripts/bash/security-gate.sh +++ b/AINative_OKR_CASAN5/.specify/scripts/bash/security-gate.sh @@ -41,10 +41,10 @@ if [[ -d "$FNM_NODE_DIR" ]]; then NODE_BIN=$(find "$FNM_NODE_DIR" -name "node.exe" -maxdepth 4 2>/dev/null | sort -V | tail -1) [[ -n "$NODE_BIN" ]] && export PATH="$(dirname "$NODE_BIN"):$PATH" fi -if command -v node >/dev/null 2>&1; then +if command -v node >/dev/null 2>&1 && [[ -f "$ROOT/node_modules/.bin/vitest" ]]; then run "frontend runtime tests (WV4-A)" bash -c "cd '$ROOT' && npm test -w frontend" else - echo " GATE SKIP frontend runtime tests (node not in PATH)"; SKIP=$((SKIP+1)) + echo " GATE SKIP frontend runtime tests (vitest not installed — covered by frontend-tests CI job)"; SKIP=$((SKIP+1)) fi echo "== verdict: PASS=$PASS FAIL=$FAIL SKIP=$SKIP =="