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

Function replaceJestBuildLineNumbers

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

Source from the content-addressed store, hash-verified

207 .replaceAll(/Node\.js v\d+\.\d+\.\d+/g, 'Node.js <<REPLACED>>');
208
209export const replaceJestBuildLineNumbers = (str: string) =>
210 str.replaceAll(
211 /([^:\s]*[\w-]+[/\\]build[/\\][^:\s]+:)\d+(?::\d+)?/g,
212 '$1<<REPLACED>>',
213 );
214
215const repoRoot = path.resolve(__dirname, '..');
216

Calls

no outgoing calls

Tested by

no test coverage detected