Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
chore(tests-unit): separate unit tests for client and server
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanOricil committed Dec 8, 2024
1 parent 4cc1100 commit c5a6673
Show file tree
Hide file tree
Showing 15 changed files with 2,305 additions and 132 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,11 @@ jobs:
- name: Lint
run: npm run lint

- name: Test
run: npm run test
- name: Test Server
run: npm run test:unit:server:coverage

- name: Test Client
run: npm run test:unit:client:coverage

- name: Build
run: npm run build
12 changes: 6 additions & 6 deletions .github/workflows/playwright.yml → .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Playwright Tests
name: E2E Tests
on:
push:
branches: [main]
Expand All @@ -19,14 +19,14 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Start Test Server
run: npm run test:start &

- name: Start Dev
run: npm run start:test &
- name: Test Server
run: curl http://localhost:1880

- name: Run Playwright tests
run: npx playwright test
run: npm run test:e2e

- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ jobs:
- name: Lint
run: npm run lint

- name: Test
run: npm run test
- name: Test Server
run: npm run test:unit:server:coverage

- name: Test Client
run: npm run test:unit:client:coverage

- name: Build
run: npm run build
Expand Down
4 changes: 4 additions & 0 deletions nrg.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ module.exports = {
},
},
nodeRed: {
paletteCategories: ["custom nodes"],
editorTheme: {
tours: false,
},
logging: {
console: {
level: "debug",
Expand Down
Loading

0 comments on commit c5a6673

Please sign in to comment.