-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest_unit.sh
More file actions
executable file
·25 lines (20 loc) · 824 Bytes
/
Copy pathtest_unit.sh
File metadata and controls
executable file
·25 lines (20 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
# ==============================================================================
# Rexone Web — Unit Test Runner (Vitest)
#
# Usage:
# ./scripts/test_unit.sh [filter] [options]
#
# Examples:
# ./scripts/test_unit.sh # Run all unit tests
# ./scripts/test_unit.sh auth # Run auth controller / unit tests
# ./scripts/test_unit.sh --coverage # Run with coverage report
# ==============================================================================
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
cd "$PROJECT_ROOT"
echo "===================================================="
echo " ⚡ Rexone Web — Unit Tests (Vitest)"
echo "===================================================="
npx vitest run "$@"