(error, node)
| 13 | `DEP${codeAsNumber.toString().padStart(4, '0')}`; |
| 14 | |
| 15 | const addMarkdownPathToErrorStack = (error, node) => { |
| 16 | const { line, column } = node.position.start; |
| 17 | const [header, ...lines] = error.stack.split('\n'); |
| 18 | error.stack = |
| 19 | header + |
| 20 | `\n at <anonymous> (${source}:${line}:${column})\n` + |
| 21 | lines.join('\n'); |
| 22 | return error; |
| 23 | }; |
| 24 | |
| 25 | const testHeading = (headingNode, expectedDeprecationCode) => { |
| 26 | try { |
no test coverage detected
searching dependent graphs…