MCPcopy
hub / github.com/jestjs/jest / normalizeIcons

Function normalizeIcons

packages/test-utils/src/normalizeIcons.ts:8–17  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

6 */
7
8export function normalizeIcons(str: string): string {
9 if (!str) {
10 return str;
11 }
12
13 // Make sure to keep in sync with `jest-util/src/specialChars`
14 return str
15 .replaceAll(new RegExp('\u00D7', 'gu'), '\u2715')
16 .replaceAll(new RegExp('\u221A', 'gu'), '\u2713');
17}

Callers 2

logMethod · 0.90
normalizeStreamStringFunction · 0.90

Calls

no outgoing calls

Tested by 1

logMethod · 0.72