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

Function trimPaths

packages/jest-message-util/src/index.ts:76–77  ·  view source on GitHub ↗
(string: string)

Source from the content-addressed store, hash-verified

74// want to trim those, because they may have pointers to the column/character
75// which will get misaligned.
76const trimPaths = (string: string) =>
77 STACK_PATH_REGEXP.test(string) ? trim(string) : string;
78
79const getRenderedCallsite = (
80 fileContent: string,

Callers 1

formatStackTraceFunction · 0.85

Calls 2

trimFunction · 0.85
testMethod · 0.45

Tested by

no test coverage detected