Update logic check
MODIFY
bin-src/ui/messages/info/buildPassed.stories.ts
bin-src/ui/messages/info/buildPassed.stories.ts
@@ -9,6 +9,16 @@ export const BuildPassed = () =>
build: {
number: 42,
webUrl: 'https://www.chromatic.com/build?appId=59c59bd0183bd100364e1d57&number=42',
+ changeCount: 0,
+ },
+ } as any);
+
+export const BuildPassedWithChanges = () =>
+ buildPassed({
+ build: {
+ number: 42,
+ webUrl: 'https://www.chromatic.com/build?appId=59c59bd0183bd100364e1d57&number=42',
+ changeCount: 2,
},
} as any);

MODIFY
bin-src/ui/messages/info/buildPassed.ts
bin-src/ui/messages/info/buildPassed.ts
@@ -25,7 +25,7 @@ export default ({ build, isOnboarding }: Context) => {
`)
: dedent(chalk`
${success} {bold Build ${build.number} passed!}
- ${build.changeCount === 0 ? 'No visual changes' : visualChanges} were found in this build.
+ ${build.changeCount > 0 ? visualChanges : 'No visual changes'} were found in this build.
${info} View build details at ${link(build.webUrl)}
`);
};

Update logic check