@chtsinc/ch-playwright-report
Version:
Custom Playwright Reporter that logs test and execution results to MongoDB
32 lines • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReportUploadUtil = void 0;
//import { getLogger } from "@chtsinc/ch-logger";
//import { AzureBlobStorageUploader } from "@chtsinc/ch-uploader";
//import { getExtension } from "./file-util";
//const logger = getLogger();
//const uploader = new AzureBlobStorageUploader();
class ReportUploadUtil {
static async uploadReportFile(_filePath, _serviceConfig, _report) {
let url = null;
/* try {
const config = {
ch_azure_blob_sas_url: serviceConfig.chAZRVideoBlobSasUrl,
};
const blobName = this.createBlobName(
filePath,
report,
serviceConfig.reportTimezone
);
url = await uploader.upload(filePath, config, blobName);
} catch (error) {
logger.error(
`CHPlaywrightReporter: Video upload failed for: ${filePath}`,
error
);
} */
return url;
}
}
exports.ReportUploadUtil = ReportUploadUtil;
//# sourceMappingURL=report-upload-util.js.map