: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
const path = require("node:path");
const { getJestConfig } = require("@storybook/test-runner");
const baseConfig = getJestConfig();
module.exports = {
...baseConfig,
roots: [path.resolve(__dirname, "../..")],
forceExit: true,
// test-runner-globals.js must come first: Storybook 10 loads test-runner.ts
// outside Jest's module scope, so `jest` has to be reachable via globalThis
// for setup() to call jest.retryTimes / jest.setTimeout.
setupFilesAfterEnv: [
path.resolve(__dirname, "test-runner-globals.js"),
...(baseConfig.setupFilesAfterEnv ?? []),
],
testTimeout: 60000,
testEnvironment: path.resolve(__dirname, "test-runner-jest-environment.mjs"),
};