mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
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[@]}"
|