playwright-slack-report-burak 3.0.37 → 3.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -522,7 +522,7 @@ class ResultsParser {
|
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
-
unzipBlobsAndCopyResources(
|
|
525
|
+
unzipBlobsAndCopyResources(NODE_ARTIFACTS_DIR, FINAL_OUTPUT_DIR) {
|
|
526
526
|
if (!AdmZip) {
|
|
527
527
|
console.error('adm-zip is required for blob extraction. Please install it: npm install adm-zip');
|
|
528
528
|
return;
|
|
@@ -530,9 +530,9 @@ class ResultsParser {
|
|
|
530
530
|
|
|
531
531
|
// Unzip all blob files in nodeArtifacts into separate folders
|
|
532
532
|
for (let i = 1; i <= this.totalShardCount; i++) {
|
|
533
|
-
const blobZipFile = path.join(
|
|
533
|
+
const blobZipFile = path.join(NODE_ARTIFACTS_DIR, `blob-report-node-${i}.zip`);
|
|
534
534
|
if (fs.existsSync(blobZipFile)) {
|
|
535
|
-
const extractDir = path.join(
|
|
535
|
+
const extractDir = path.join(NODE_ARTIFACTS_DIR, `node-${i}`);
|
|
536
536
|
if (!fs.existsSync(extractDir)) {
|
|
537
537
|
fs.mkdirSync(extractDir, { recursive: true });
|
|
538
538
|
}
|
|
@@ -550,7 +550,7 @@ class ResultsParser {
|
|
|
550
550
|
|
|
551
551
|
if (zipFiles.length > 0) {
|
|
552
552
|
// Copy the resources folder to finalOutput
|
|
553
|
-
const finalResourcesDir = path.join(
|
|
553
|
+
const finalResourcesDir = path.join(FINAL_OUTPUT_DIR, 'resources');
|
|
554
554
|
if (!fs.existsSync(finalResourcesDir)) {
|
|
555
555
|
fs.mkdirSync(finalResourcesDir, { recursive: true });
|
|
556
556
|
}
|
package/package.json
CHANGED