mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
chore(deps): update vitest monorepo to v4 from ^3.2.4 (major) GitOrigin-RevId: 553a8fefadd82598a9ff4089ce468b59791e2d43
18 lines
325 B
Bash
Executable File
18 lines
325 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: $*"
|
|
|
|
npm run test:unit -- "${vitest_args[@]}"
|
|
|