test: isolate WorkBuddy launcher subprocess checks

This commit is contained in:
tianma-if committed 2026-10-15 12:42:37 +08:00
1 parent 71e2395e28
commit 4609f72a85
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -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",
+2 -1
View File
@@ -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);