mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 21:59:00 +02:00
5e94f8abce
GitOrigin-RevId: a33f09fb9924e4d02de6db0550c22585b2d331b6
17 lines
328 B
Bash
Executable File
17 lines
328 B
Bash
Executable File
#!/bin/bash
|
|
|
|
declare -a vitest_args=("$@")
|
|
|
|
if [[ -n "$MOCHA_GREP" ]]; then
|
|
vitest_args+=("--testNamePattern" "$MOCHA_GREP")
|
|
fi
|
|
|
|
if [[ -n "$VITEST_NO_CACHE" ]]; then
|
|
echo "Disabling cache for vitest."
|
|
vitest_args+=("--no-cache")
|
|
fi
|
|
|
|
echo "Running unit tests in directory: $*"
|
|
|
|
exec yarn run vitest run "${vitest_args[@]}"
|