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 ac60058
Show file tree
Hide file tree
Showing 14 changed files with 2,288 additions and 130 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
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 @@ -22,11 +22,11 @@ jobs:
- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Start Dev
run: npm run start:test &
- name: Start Test Server
run: npm run test:start &

- 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
1 change: 1 addition & 0 deletions nrg.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ module.exports = {
},
},
nodeRed: {
paletteCategories: ["custom nodes"],
logging: {
console: {
level: "debug",
Expand Down
Loading

0 comments on commit ac60058

Please sign in to comment.