(string: string)
| 35 | // Instead of trim, which can remove additional newlines or spaces |
| 36 | // at beginning or end of the content from a custom serializer. |
| 37 | export const removeExtraLineBreaks = (string: string): string => |
| 38 | string.length > 2 && string.startsWith('\n') && string.endsWith('\n') |
| 39 | ? string.slice(1, -1) |
| 40 | : string; |
| 41 | |
| 42 | export const removeLinesBeforeExternalMatcherTrap = (stack: string): string => { |
| 43 | const lines = stack.split('\n'); |
no outgoing calls
no test coverage detected