Skip to content

Commit 956b0ad

Browse files
authored
Merge pull request #409 from AvaCodeSolutions/copilot/create-tests-frontend-jsx-files
PR 1: Add Vitest test infrastructure for frontend
2 parents 0955221 + e133c74 commit 956b0ad

7 files changed

Lines changed: 1380 additions & 44 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,28 @@ jobs:
3434
- name: Run pre-commit
3535
run: make pre-commit
3636

37+
frontend-test:
38+
name: Frontend Tests (Node 20)
39+
runs-on: ubuntu-latest
40+
permissions:
41+
contents: read
42+
defaults:
43+
run:
44+
working-directory: frontend
45+
steps:
46+
- name: Checkout code
47+
uses: actions/checkout@v6
48+
- name: Set up Node.js
49+
uses: actions/setup-node@v4
50+
with:
51+
node-version: '20'
52+
cache: 'npm'
53+
cache-dependency-path: frontend/package-lock.json
54+
- name: Install dependencies
55+
run: npm ci
56+
- name: Run frontend tests
57+
run: npm test
58+
3759
test:
3860
name: Test (Python ${{ matrix.python-version }}, Django ${{ matrix.django-versions }})
3961
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)