( rawMessage: string, request: AppPathRequest, target: BuildTarget, errorLabel: string, )
| 32 | } |
| 33 | |
| 34 | export function buildAppPathFailure( |
| 35 | rawMessage: string, |
| 36 | request: AppPathRequest, |
| 37 | target: BuildTarget, |
| 38 | errorLabel: string, |
| 39 | ): AppPathDomainResult { |
| 40 | return { |
| 41 | kind: 'app-path', |
| 42 | didError: true, |
| 43 | error: errorLabel, |
| 44 | request, |
| 45 | summary: { status: 'FAILED', target }, |
| 46 | diagnostics: extractQueryDiagnostics(rawMessage), |
| 47 | }; |
| 48 | } |
| 49 | |
| 50 | export function getAppPathArtifact(result: AppPathDomainResult): string | null { |
| 51 | if ('artifacts' in result && result.artifacts && 'appPath' in result.artifacts) { |
no test coverage detected