#!/bin/bash set -e REPO_ROOT=$(git rev-parse --show-toplevel) WEB_DIR="$REPO_ROOT/apps/web" echo "๐Ÿ“ Frontend Unit Tests (Vitest)" echo "๐Ÿ“‚ Web Directory: $WEB_DIR" cd "$WEB_DIR" if [ ! -d "node_modules" ]; then echo "๐Ÿ“ฆ Installing dependencies..." npm ci else echo "โœ… Dependencies found" fi echo "๐Ÿงช Running unit tests..." npm run test -- --run echo "โœ… Unit tests passed."