diff --git a/code/addons/test/src/utils.ts b/code/addons/test/src/utils.ts index d80d9f4cdbe..6139bd73860 100644 --- a/code/addons/test/src/utils.ts +++ b/code/addons/test/src/utils.ts @@ -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, });