if jest nono - nono tests

This commit is contained in:
2025-10-21 23:02:11 +02:00
parent f64fb08566
commit 3ff51f64eb

View File

@@ -78,18 +78,14 @@ jobs:
working-directory: ./backend working-directory: ./backend
run: npx tsc --noEmit run: npx tsc --noEmit
- name: Check if tests exist and run them - name: Run backend tests
working-directory: ./backend working-directory: ./backend
run: | run: |
# Check if jest is available and test script exists # Skip tests if jest is not installed
if npx --no-install jest --version > /dev/null 2>&1; then if [ -f "node_modules/.bin/jest" ]; then
echo "Running tests with Jest..."
npm test
elif [ -f "package.json" ] && grep -q '"test"' package.json; then
echo "Running test script from package.json..."
npm test npm test
else else
echo "No tests configured. Skipping test execution." echo "⚠️ Jest not installed. Skipping tests."
fi fi
- name: Setup Python - name: Setup Python