Ignore the stacktrace in Chromatic snapshots

This commit is contained in:
Gert Hengeveld 2022-07-01 15:09:19 +02:00
parent c36d10ce1a
commit 9be5035d79

View File

@ -133,7 +133,7 @@ export const InteractionsPanel: React.FC<InteractionsPanelProps> = React.memo(
This story threw an error after it finished rendering which means your interactions
couldn&apos;t be run. Go to this story&apos;s play function in {fileName} to fix.
</CaughtExceptionDescription>
<CaughtExceptionStack>
<CaughtExceptionStack data-chromatic="ignore">
{caughtException.stack || `${caughtException.name}: ${caughtException.message}`}
</CaughtExceptionStack>
</CaughtException>