unit tests fixin
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 41s

This commit is contained in:
2025-11-22 00:17:05 -08:00
parent d13672533d
commit 97bb1a3966
14 changed files with 260 additions and 650 deletions

View File

@@ -73,6 +73,17 @@ jobs:
run: npm test # Run the test suite against the temporary test database.
# also Run the test suite to ensure code correctness.
- name: Run Integration Tests
# This step runs tests that require a live backend server.
env:
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_PORT }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_DATABASE: "flyer-crawler-test"
JWT_SECRET: "test-secret-for-ci" # Use a fixed secret for CI
run: npm run test:integration
- name: Archive Code Coverage Report
# This action saves the generated HTML coverage report as a downloadable artifact.
uses: actions/upload-artifact@v3