Skip to content

Commit

Permalink
Merge pull request #29446 from storybookjs/escape-xml-in-error
Browse files Browse the repository at this point in the history
Addon Test: Escape XML when converting ANSI to HTML in test errors
  • Loading branch information
valentinpalkovic authored Oct 28, 2024
2 parents 936293d + efe13b2 commit 074d679
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/addons/test/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function isJestError(error: unknown) {

export function createAnsiToHtmlFilter(theme: StorybookTheme) {
return new Filter({
escapeXML: true,
fg: theme.color.defaultText,
bg: theme.background.content,
});
Expand Down

0 comments on commit 074d679

Please sign in to comment.