const regAssertParser = /(?.*?)\n+(?<diff>.*?)\n+(?<stacktrace> (?<where>at.*?file:\/\/(?<file>.*?):(?<line>\d+):(?<column>\d+)\)?)\n.*)/s const stackParser = (stack) => { const m = stack.match(regAssertParser) return m.groups } export { stackParser }