playwright-slack-report-burak 2.0.8 → 2.0.9

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.
@@ -38,7 +38,7 @@ class ResultsParser {
38
38
  }*/
39
39
 
40
40
  // Define the directory to store node summaries
41
- const summariesDir = path.join(process.env.CIRCLE_WORKING_DIRECTORY || './', 'playwright-report');
41
+ const summariesDir = path.join('./', 'playwright-report');
42
42
 
43
43
  if (!fs.existsSync(summariesDir)) {
44
44
  fs.mkdirSync(summariesDir, { recursive: true });
@@ -272,7 +272,7 @@ class ResultsParser {
272
272
  }*/
273
273
  allNodeSummaryFilesExist() {
274
274
  console.log('Checking if all node summary files exist...');
275
- const summariesDir = path.join(process.env.CIRCLE_WORKING_DIRECTORY || './', 'playwright-report');
275
+ const summariesDir = path.join('./', 'playwright-report');
276
276
 
277
277
  for (let i = 0; i < this.totalShardCount; i++) {
278
278
  const nodeSummaryFile = path.join(summariesDir, `node_summary_${i}.json`);
@@ -285,7 +285,7 @@ class ResultsParser {
285
285
 
286
286
  allBlobZipsExist() {
287
287
  console.log('Checking if all blob zips exist...');
288
- const summariesDir = path.join(process.env.CIRCLE_WORKING_DIRECTORY || './', 'playwright-report');
288
+ const summariesDir = path.join('./', 'playwright-report');
289
289
 
290
290
  for (let i = 0; i < this.totalShardCount; i++) {
291
291
  const blobZipFile = path.join(summariesDir, `blob-report-node-${i}.zip`);
@@ -297,7 +297,7 @@ class ResultsParser {
297
297
  }
298
298
 
299
299
  async fetchAllArtifacts() {
300
- const summariesDir = path.join(process.env.CIRCLE_WORKING_DIRECTORY || './', 'playwright-report');
300
+ const summariesDir = path.join('./', 'playwright-report');
301
301
  while (!this.allNodeSummaryFilesExist() || !this.allBlobZipsExist()) {
302
302
  console.log('Waiting for all blob zips to exist...');
303
303
  if (!fs.existsSync(summariesDir)) {
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "lint-fix": "npx eslint . --ext .ts --fix"
31
31
  },
32
32
  "name": "playwright-slack-report-burak",
33
- "version": "2.0.8",
33
+ "version": "2.0.9",
34
34
  "main": "index.js",
35
35
  "types": "dist/index.d.ts",
36
36
  "repository": "git@github.com:ryanrosello-og/playwright-slack-report.git",