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.

chore(storybook): move test-runner files to `common/storybook/` (#63863)

Rafael Audibert688f9b190873
diff --git a/.dockerignore b/.dockerignore
index aa50fc754719..19eb71e30a26 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -62,8 +62,6 @@
!share/GeoLite2-City.mmdb
!staticfiles
!tailwind.config.js
-!test-runner-jest-environment.js
-!test-runner-jest.config.js
!tools/hogli
!tools/openapi-codegen
!tsconfig.json
diff --git a/Dockerfile.playwright b/Dockerfile.playwright
index b172ca7ffefd..f5feed9eedb5 100644
--- a/Dockerfile.playwright
+++ b/Dockerfile.playwright
@@ -14,6 +14,4 @@ COPY patches/ patches/
RUN pnpm install --frozen-lockfile
-COPY playwright.config.ts webpack.config.js babel.config.js tsconfig.json test-runner-jest.config.js test-runner-jest-environment.js ./
-
-COPY .storybook/ .storybook/
+COPY tsconfig.json ./
diff --git a/test-runner-jest-environment.js b/common/storybook/test-runner-jest-environment.js
similarity index 100%
rename from test-runner-jest-environment.js
rename to common/storybook/test-runner-jest-environment.js
diff --git a/common/storybook/test-runner-jest.config.js b/common/storybook/test-runner-jest.config.js
index c9cc09bd7b66..566679809845 100644
--- a/common/storybook/test-runner-jest.config.js
+++ b/common/storybook/test-runner-jest.config.js
@@ -16,8 +16,8 @@ module.exports = {
// with jest-image-snapshot's outdated snapshot reporter
reporters: [...(baseConfig.reporters || ['default']), 'jest-image-snapshot/src/outdated-snapshot-reporter.js'],
testTimeout: 60000,
- testEnvironment: './test-runner-jest-environment.js',
- snapshotResolver: './test-snapshot-resolver.js',
+ testEnvironment: './common/storybook/test-runner-jest-environment.js',
+ snapshotResolver: './common/storybook/test-snapshot-resolver.js',
testPathIgnorePatterns: ['/node_modules/', '/rust/cymbal/tests/snapshots/'],
testSequencer: path.resolve(__dirname, 'test-sequencer.js'),
}
diff --git a/test-snapshot-resolver.js b/common/storybook/test-snapshot-resolver.js
similarity index 100%
rename from test-snapshot-resolver.js
rename to common/storybook/test-snapshot-resolver.js