Skip to content

Commit

Permalink
Add a story for trace printing with bail reasons.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhobbs committed Oct 11, 2024
1 parent 43a9035 commit 9704a25
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions node-src/ui/messages/info/tracedAffectedFiles.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,26 @@ export const TracedAffectedFilesExpanded = () =>
}
);

export const TracedAffectedFilesExpandedBailed = () =>
tracedAffectedFiles(
{
options: { traceChanged: 'expanded' },
turboSnap: {
rootPath,
tracedPaths: new Set(tracedPaths),
bailReason: {
changedStorybookFiles: ['.storybook/preview.tsx', '.storybook/preview.less'],
},
},
} as any,
{
changedFiles: ['src/app/dashboard/index.ts'],
affectedModules,
modulesByName,
normalize: (f) => f,
}
);

export const TracedAffectedFilesCompact = () =>
tracedAffectedFiles(
{
Expand Down

0 comments on commit 9704a25

Please sign in to comment.