MCPcopy Create free account
hub / github.com/appium/appium / checkReportStatus

Function checkReportStatus

scripts/crowdin-stats.mjs:60–66  ·  view source on GitHub ↗

* Check report generation status * @param {string} reportId * @returns {Promise<{status: string, progress: number}>}

(reportId)

Source from the content-addressed store, hash-verified

58 * @returns {Promise<{status: string, progress: number}>}
59 */
60async function checkReportStatus(reportId) {
61 const {data: statusData} = await performApiRequest(`/reports/${reportId}`);
62 return {
63 status: statusData.status,
64 progress: statusData.progress,
65 };
66}
67
68/**
69 * Wait for report to be ready and download it

Callers 1

downloadReportFunction · 0.85

Calls 1

performApiRequestFunction · 0.90

Tested by

no test coverage detected