Skip to content

Commit

Permalink
Ignore code block in Chromatic to fix inconsistent snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Aug 1, 2024
1 parent 0b6b357 commit 2db10ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/core/assets/server/base-preview-body.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,6 @@ <h1 id="error-message"></h1>
>.
</li>
</ol>
<pre class="sb-errordisplay_code"><code id="error-stack"></code></pre>
<pre class="sb-errordisplay_code chromatic-ignore"><code id="error-stack"></code></pre>
</div>
</div>
4 changes: 3 additions & 1 deletion test-storybooks/standalone-preview/storybook.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
<script type="module" src="./storybook.ts"></script>
<div class="sb-errordisplay sb-wrapper">
<div id="error-message" class="sb-heading"></div>
<pre class="sb-errordisplay_code"><code id="error-stack"></code></pre>
<pre
class="sb-errordisplay_code chromatic-ignore"
><code id="error-stack"></code></pre>
</div>
</body>
</html>

0 comments on commit 2db10ce

Please sign in to comment.