Skip to content

Commit

Permalink
test: create desktop snapshot baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
codeincontext committed Dec 4, 2024
1 parent 1f4aa9d commit c14c514
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/nextjs/.storybook/chromatic.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export const CHROMATIC_ALL_VIEWPORTS = { viewports: [375] };
export const CHROMATIC_MOBILE_ONLY = { viewports: [375] };
export const CHROMATIC_DESKTOP_ONLY = { viewports: [1200] };
2 changes: 2 additions & 0 deletions apps/nextjs/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { DialogProvider } from "../src/components/AppComponents/DialogContext";
import { AnalyticsProvider } from "../src/mocks/analytics/provider";
import { ClerkDecorator } from "../src/mocks/clerk/ClerkDecorator";
import { TRPCReactProvider } from "../src/utils/trpc";
import { CHROMATIC_DESKTOP_ONLY } from "./chromatic";
import { RadixThemeDecorator } from "./decorators/RadixThemeDecorator";
import "./preview.css";

Expand All @@ -28,6 +29,7 @@ const preview: Preview = {
date: /Date$/i,
},
},
...CHROMATIC_DESKTOP_ONLY,
},
loaders: [mswLoader],
};
Expand Down

0 comments on commit c14c514

Please sign in to comment.