Skip to content

: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.

perf(storybook): run visual regression CI with two jest workers (#72767)

Paul D'Ambrafb860514af83
diff --git a/common/storybook/package.json b/common/storybook/package.json
index 547f73212f21..9a258f4dc99c 100644
--- a/common/storybook/package.json
+++ b/common/storybook/package.json
@@ -4,8 +4,8 @@
"build:products": "pnpm --filter=@posthog/frontend build:products",
"build": "pnpm build:products && DEBUG=0 NODE_OPTIONS=--max-old-space-size=8192 storybook build -o dist",
"start": "pnpm build:products && DEBUG=0 NODE_OPTIONS=--max-old-space-size=8192 storybook dev -p 6006 --no-open",
- "test:visual:ci:update": "test-storybook -u --junit --no-index-json --maxWorkers=1",
- "test:visual:ci:verify": "test-storybook --ci --junit --no-index-json --maxWorkers=1",
+ "test:visual:ci:update": "test-storybook -u --junit --no-index-json --maxWorkers=2",
+ "test:visual:ci:verify": "test-storybook --ci --junit --no-index-json --maxWorkers=2",
"test:visual:debug": "pnpm build:products && PWDEBUG=1 NODE_OPTIONS=--max-old-space-size=16384 test-storybook --browsers chromium webkit --no-index-json",
"test:visual:update": "pnpm build:products && cd ../.. && rm -rf frontend/__snapshots__/__failures__/ && docker compose -f docker-compose.playwright.yml run --rm -it --build playwright pnpm test:visual:update:docker --url http://host.docker.internal:6006",
"test:visual:update:docker": "pnpm build:products && NODE_OPTIONS=--max-old-space-size=16384 test-storybook -u --browsers chromium webkit --no-index-json"