( reason: BundleIntegrityReason, message: string, requestId: string, ids?: Record<string, string | string[] | null>, )
| 779 | } |
| 780 | |
| 781 | function bundleIntegrityError( |
| 782 | reason: BundleIntegrityReason, |
| 783 | message: string, |
| 784 | requestId: string, |
| 785 | ids?: Record<string, string | string[] | null>, |
| 786 | ): ApiError { |
| 787 | return ApiError.fromEnvelope({ |
| 788 | error: { |
| 789 | code: 'VALIDATION_ERROR', |
| 790 | message, |
| 791 | nextAction: |
| 792 | 'Re-run `testsprite test failure get`. The backend may have been mid-snapshot — a fresh fetch usually succeeds. Report the requestId to support if it persists.', |
| 793 | requestId, |
| 794 | details: { reason, ...(ids ?? {}) }, |
| 795 | }, |
| 796 | }); |
| 797 | } |
| 798 | |
| 799 | // Avoid unused-import lint warning for the `mkdtemp` and `readdir` |
| 800 | // helpers reserved for forensics + future resume work. |
no test coverage detected