cypress-qase-reporter 2.2.6 → 2.2.7

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,9 @@
1
+ # cypress-qase-reporter@2.2.7
2
+
3
+ ## What's new
4
+
5
+ Fixed an issue where the reporter got error if screenshot folder was not exist.
6
+
1
7
  # cypress-qase-reporter@2.2.6
2
8
 
3
9
  ## What's new
@@ -69,6 +69,9 @@ class FileSearcher {
69
69
  static findFolderByName(startPath, folderName) {
70
70
  const result = [];
71
71
  function searchDirectory(currentPath) {
72
+ if (!fs.existsSync(currentPath)) {
73
+ return;
74
+ }
72
75
  const items = fs.readdirSync(currentPath, { withFileTypes: true });
73
76
  for (const item of items) {
74
77
  const itemPath = path.join(currentPath, item.name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress-qase-reporter",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "Qase Cypress Reporter",
5
5
  "homepage": "https://github.com/qase-tms/qase-javascript",
6
6
  "sideEffects": false,