@testomatio/reporter 0.7.1 → 0.7.2-beta.1

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.
package/Changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.7.2
2
+
3
+ * Fixed uploading non-existing file
4
+
1
5
  # 0.7.1
2
6
 
3
7
  * Support for NUnit XML v3 format
@@ -54,6 +54,11 @@ const uploadUsingS3 = async (filePath, runId) => {
54
54
  }
55
55
 
56
56
  const s3 = new AWS.S3(config);
57
+ if (!fs.existsSync(filePath)) {
58
+ console.error(chalk.yellow(`Artifacts file ${filePath} does not exist. Skipping...`));
59
+ return;
60
+ }
61
+
57
62
  const file = fs.readFileSync(filePath);
58
63
 
59
64
  Key = `${runId}/${randomUUID()}-${Key || path.basename(filePath)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@testomatio/reporter",
3
- "version": "0.7.1",
3
+ "version": "0.7.2-beta.1",
4
4
  "description": "Testomatio Reporter Client",
5
5
  "main": "./lib/reporter.js",
6
6
  "repository": "git@github.com:testomatio/reporter.git",