feat: enhance testing framework with new test cases and configurations
Test / backend (push) Failing after 9s
Test / frontend (push) Failing after 14s

This commit is contained in:
LaurensBartelds committed 2026-04-26 21:45:02 +02:00
1 parent a37c093cc4
commit ef8fe6f938
18 files changed
+793 -6

No files matched your search

+22 -4
View File
@@ -6,11 +6,17 @@ on:
- '**'
jobs:
backend-tests:
backend:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
env:
JWT_SECRET: ci-test-secret
NODE_ENV: test
DB_PATH: ':memory:'
CORS_ORIGIN: 'http://localhost:5173'
APP_URL: 'http://localhost:5173'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
@@ -19,9 +25,14 @@ jobs:
cache: 'npm'
cache-dependency-path: ./backend/package-lock.json
- run: npm ci
- run: npm test
- name: Type check
run: npx tsc --noEmit
- name: Build
run: npm run build
- name: Run tests
run: npm test
frontend-tests:
frontend:
runs-on: ubuntu-latest
defaults:
run:
@@ -34,4 +45,11 @@ jobs:
cache: 'npm'
cache-dependency-path: ./frontend/package-lock.json
- run: npm ci
- run: npm run test:run
- name: Lint
run: npm run lint
- name: Type check
run: npx tsc -b --noEmit
- name: Build
run: npm run build
- name: Run tests
run: npm run test:run