:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(desktop): run two test packages at a time in turbo (#100975)
Paul D'Ambra6ed004f44ae0
diff --git a/products/desktop/docs/TESTING.md b/products/desktop/docs/TESTING.mdindex 9c75941d4695..207b0f51312d 100644--- a/products/desktop/docs/TESTING.md+++ b/products/desktop/docs/TESTING.md@@ -3,6 +3,8 @@## Commands- `pnpm test`: run unit tests across packages.+ Turbo runs two packages at a time.+ Each Vitest process already uses every core, so turbo's default of ten packages at once starved the 4 core CI runner and made trivial tests hit their 5 second timeout.- `pnpm --filter code test`: run desktop app unit tests.- `pnpm test:e2e`: run Playwright E2E tests.- `pnpm --filter <pkg> test`: run tests for one package.diff --git a/products/desktop/package.json b/products/desktop/package.jsonindex 781fb2db83da..e764a3d38b01 100644--- a/products/desktop/package.json+++ b/products/desktop/package.json@@ -22,7 +22,7 @@"build": "turbo build","build:deps": "turbo build --filter=@posthog/code^...","package": "turbo build && pnpm --filter code package",- "test": "turbo test",+ "test": "turbo test --concurrency=2","test:bun": "turbo test --filter=@posthog/core --filter=@posthog/cli","test:vitest": "pnpm --filter code --filter @posthog/electron-trpc test","test:e2e": "pnpm --filter code test:e2e",