tr
TryGhost
GitHub
Ghost
Workspace
GitHub
CI Pipeline Executions
Filtered
Runs
Demo
Insights
Compare tasks
Analytics
Sign in
Toggle sidebar
Overview
⌘K
Ghost
Loading workspace stats
Loading workspace insights...
Statistics interval
7 days
30 days
Latest CI Pipeline Executions
Status
Fix filter
Filter
Fuzzy
Filter range
Sort by
Sort by
Start time
Sort ascending
Sort descending
Succeeded
30235
3e6cc338 Changed admin unit tests to one fixture source no ref The admin unit lane had four copies of the boot payloads (test-data's canonical fixtures, the framework's msw-utils copies, admin's mockUser and changelog factories, activitypub's JSON) and three coexisting MSW idioms. This consolidates the unit lane on @tryghost/test-data builders plus admin's own serverFixture, and shrinks the framework's legacy src/test surface to what still has consumers. Fixture source: deleted test-utils/factories (mockUser, changelog); the theme, user-preferences, onboarding, whats-new, and changelog suites now build users with staffUser() and changelog entries with changelogEntry(). test-data gained only additive tweaks: an optional newsletter name on the post builder, and ChangelogEntry became a type alias so it satisfies zod loose-object inputs. MSW idiom: rewrote the four posts-analytics suites from the 290-line mockServer.setup helper onto serverFixture + test-data builders and deleted msw-helpers.ts with its usage guide. setupStatsAppMocks keeps serving the retained analytics hook suites but now builds its canned newsletter/top-post responses from test-data builders instead of importing framework fixtures. The query-client fixture hosts its own TestWrapper (FrameworkProvider with inert props) instead of re-exporting the framework's. Framework src/test verdicts, by remaining consumers: - deleted msw-utils.ts (last importers were admin's msw-helpers and the framework's own session-expiry test, now on plain msw setupServer) - deleted responses/*.json and the responseFixtures export from acceptance.ts (only importer was admin's setupStatsAppMocks) - kept setup.ts (admin test setup), hook-testing-utils.ts (admin analytics suites use every member), test-utils.tsx (framework's own unit tests), acceptance.ts mockApi and render.tsx (activitypub) knip entries now list those survivors explicitly instead of a src/test glob so future dead modules get flagged. Ride-along prunes in automations.test.tsx: the three loading-skeleton-only cases, and the Stripe-disconnected duplicate whose assertion (paid welcome flow hidden without Stripe) is covered by the acceptance case "lists the welcome automations" via its single-row check against the default disconnected boot.
by Steve Larson
S
Previous
Next