MCPcopy Index your code
hub / github.com/code-pushup/cli / removeColorCodes

Function removeColorCodes

testing/test-utils/src/lib/utils/string.ts:2–5  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

1// removes all color codes from the output for snapshot readability
2export function removeColorCodes(stdout: string) {
3 // eslint-disable-next-line no-control-regex
4 return stdout.replace(/\u001B\[\d+m/g, '');
5}

Calls

no outgoing calls

Tested by

no test coverage detected