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

Function normalizeNewlines

packages/jest-snapshot-utils/src/utils.ts:179–180  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

177};
178
179export const normalizeNewlines = (string: string): string =>
180 string.replaceAll(/\r\n|\r/g, '\n');
181
182export const saveSnapshotFile = (
183 snapshotData: SnapshotData,

Callers 2

serializeFunction · 0.90
saveSnapshotFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected