Initial commit: AetherForge Linux (forge-mesh) v0.1.0-dev
Some checks failed
Test / test (push) Has been cancelled
Some checks failed
Test / test (push) Has been cancelled
This commit is contained in:
18
scripts/test-frontend.sh
Executable file
18
scripts/test-frontend.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/usr/bin/env bash
|
||||
# Frontend unit tests (Vitest + Testing Library)
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
WEB="${ROOT}/web"
|
||||
|
||||
cd "${WEB}"
|
||||
|
||||
if [[ ! -d node_modules ]]; then
|
||||
echo "==> [frontend] installing dependencies"
|
||||
npm ci 2>/dev/null || npm install
|
||||
fi
|
||||
|
||||
echo "==> [frontend] vitest run"
|
||||
npm run test
|
||||
|
||||
echo "✓ frontend tests passed"
|
||||
Reference in New Issue
Block a user