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

Function replaceNodeInfo

e2e/Utils.ts:204–207  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

202 .replaceAll(', estimated <<REPLACED>>', '');
203
204export const replaceNodeInfo = (str: string) =>
205 str
206 .replaceAll(/[^\n]*node:internal\/[^\n]*\n?/g, '')
207 .replaceAll(/Node\.js v\d+\.\d+\.\d+/g, 'Node.js <<REPLACED>>');
208
209export const replaceJestBuildLineNumbers = (str: string) =>
210 str.replaceAll(

Calls

no outgoing calls

Tested by

no test coverage detected