ci(electron): wire node --test for electron/*.test.cjs

Follow-up to #7297: the simple-store regression test only ran via
local invocation. Add a test:electron npm script and run it in the
CI Tests job so simple-store fixes stay regression-guarded.
This commit is contained in:
Johannes Millan 2026-04-21 15:09:45 +02:00
parent e88af693a0
commit 80976c32c1
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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'",