Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

test: isolate WorkBuddy launcher subprocess checks

tianma-if4609f72a8508
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);