(test: Node | null | undefined, tested: Node)
| 503 | } |
| 504 | |
| 505 | private isErrorsTest(test: Node | null | undefined, tested: Node): boolean { |
| 506 | return ( |
| 507 | test?.type === "BinaryExpression" && |
| 508 | test.operator === "instanceof" && |
| 509 | test.left === tested && |
| 510 | this.errorsTests.has(test.right) |
| 511 | ) |
| 512 | } |
| 513 | |
| 514 | // e.g. `data` in `out instanceof type.errors ? out.issues : { data }`, or |
| 515 | // anywhere after `if (out instanceof type.errors) return out.issues` |
no test coverage detected