Chore: runners: fix vitest on both github and forgejo

This commit is contained in:
Pieter Vander Vennet 2024-12-09 18:38:50 +01:00
parent 48c3615ad6
commit 7b70a0e4a9

View file

@ -45,7 +45,13 @@ jobs:
export NODE_OPTIONS="--max-old-space-size=8192"
npm run clean:tests
npm run generate:doctests 2>&1 | grep -v "No doctests found in"
vitest --run test
if which vitest
then
vitest --run test
else
npm run test
fi
npm run clean:tests
shell: bash