Skip to content

Commit 049e3cc

Browse files
authored
Merge pull request #50 from DiamondLightSource/testing
Added unit testing to project
2 parents 4841995 + 47fbb7e commit 049e3cc

File tree

7 files changed

+2127
-289
lines changed

7 files changed

+2127
-289
lines changed

.env.test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
VITE_THROTTLE_PERIOD=1000
2+
VITE_PROFILER_ENABLED=false
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [21]
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
cache: "npm"
20+
21+
- name: Install dependencies
22+
run: npm install
23+
24+
- name: Run tests
25+
run: npm test

0 commit comments

Comments
 (0)