Skip to content

Commit f34fe6a

Browse files
[NDH-248] Introduce frontend test suite (#116)
* [NDH-248] Introduce vitest + testing-library for frontend testing * remove leftover example app react code
1 parent 9b73f94 commit f34fe6a

File tree

14 files changed

+1949
-179
lines changed

14 files changed

+1949
-179
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Frontend Tests
2+
permissions:
3+
contents: read
4+
5+
on:
6+
pull_request:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repo
17+
uses: actions/checkout@v4
18+
19+
- name: Setup NodeJS
20+
uses: actions/setup-node@v4
21+
22+
- name: Setup frontend
23+
working-directory: frontend
24+
run: |
25+
npm ci
26+
27+
- name: Run tests
28+
working-directory: frontend
29+
run: |
30+
npm run coverage

frontend/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ dist-ssr
2525
*.sw?
2626

2727
static/
28+
29+
coverage/

0 commit comments

Comments
 (0)