From 80976c32c11398290d77afe2de807a0c37dfabe7 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Tue, 21 Apr 2026 15:09:45 +0200 Subject: [PATCH] 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. --- .github/workflows/ci.yml | 1 + package.json | 1 + 2 files changed, 2 insertions(+) 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'",