From 4609f72a850813d059a69f117709eca86adf7479 Mon Sep 17 00:00:00 2001 From: tianma-if Date: Thu, 15 Oct 2026 12:42:37 +0800 Subject: [PATCH] test: isolate WorkBuddy launcher subprocess checks --- package.json | 4 ++-- tests/deployment-entrypoints.test.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index fffdafce..c2222b62 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ ], "scripts": { "test": "bun run test:bulk && bun run test:integration", - "test:bulk": "bun test --path-ignore-patterns='tests/e2e/**' --path-ignore-patterns='apps/api/src/companion-learning.test.mjs' --path-ignore-patterns='apps/api/src/resource-upload-integration.test.mjs'", - "test:integration": "bun test apps/api/src/companion-learning.test.mjs apps/api/src/resource-upload-integration.test.mjs", + "test:bulk": "bun test --path-ignore-patterns='tests/e2e/**' --path-ignore-patterns='apps/api/src/companion-learning.test.mjs' --path-ignore-patterns='apps/api/src/resource-upload-integration.test.mjs' --path-ignore-patterns='apps/desktop/src/main/workbuddy-auth.test.mjs'", + "test:integration": "bun test apps/api/src/companion-learning.test.mjs apps/api/src/resource-upload-integration.test.mjs && bun test --cwd apps/desktop src/main/workbuddy-auth.test.mjs", "dev": "bun run dev:local", "dev:api": "bun run dev:api:local", "dev:local": "bun scripts/local-dev.mjs start local", diff --git a/tests/deployment-entrypoints.test.ts b/tests/deployment-entrypoints.test.ts index 54041db2..08d1e4af 100644 --- a/tests/deployment-entrypoints.test.ts +++ b/tests/deployment-entrypoints.test.ts @@ -461,8 +461,9 @@ describe("Cloudflare deployment entrypoints", () => { expect(scripts["test:bulk"]).toContain("--path-ignore-patterns='tests/e2e/**'"); expect(scripts["test:bulk"]).toContain("apps/api/src/companion-learning.test.mjs"); expect(scripts["test:bulk"]).toContain("apps/api/src/resource-upload-integration.test.mjs"); + expect(scripts["test:bulk"]).toContain("apps/desktop/src/main/workbuddy-auth.test.mjs"); expect(scripts["test:integration"]).toBe( - "bun test apps/api/src/companion-learning.test.mjs apps/api/src/resource-upload-integration.test.mjs", + "bun test apps/api/src/companion-learning.test.mjs apps/api/src/resource-upload-integration.test.mjs && bun test --cwd apps/desktop src/main/workbuddy-auth.test.mjs", ); expect(workflow).toContain("bun run test"); expect(workflow.match(/if: steps\.upstream\.outputs\.align_mode == 'merge'/g)).toHaveLength(2);