diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b8f966622..28c01b2b47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -109,6 +109,7 @@ jobs: npx playwright install-deps chromium - run: npm run env # Generate env.generated.ts from environment variables - run: npm run int:test # Validate i18n JSON files + - run: npm run test:electron # Node-side unit tests for electron/*.cjs - run: npm run test - name: Build Frontend for E2E run: npm run buildFrontend:e2e diff --git a/package.json b/package.json index 3102c49b17..058bd2e40b 100644 --- a/package.json +++ b/package.json @@ -124,6 +124,7 @@ "prettier:file": "prettier --write", "lint:file": "ng lint --lint-file-patterns", "test:file": "cross-env TZ='Europe/Berlin' ng test --watch=false --include", + "test:electron": "node --test electron/*.test.cjs", "test:fast": "cross-env TZ='Europe/Berlin' NODE_OPTIONS='--max-old-space-size=4096' ng test --watch=false --no-code-coverage --source-map=false", "test:fast:watch": "cross-env TZ='Europe/Berlin' NODE_OPTIONS='--max-old-space-size=4096' ng test --browsers ChromeHeadless --no-code-coverage --source-map=false", "test:shard:features": "cross-env TZ='Europe/Berlin' ng test --watch=false --include='src/app/features/**/*.spec.ts'",