@argos-ci/cypress 5.0.1 → 5.0.3

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/dist/support.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  } from "@argos-ci/util/browser";
12
12
 
13
13
  // package.json
14
- var version = "5.0.0";
14
+ var version = "5.0.2";
15
15
 
16
16
  // src/shared.ts
17
17
  var NAME_PREFIX = "argos/";
package/dist/task.cjs CHANGED
@@ -69,7 +69,7 @@ function registerArgosTask(on, config, options) {
69
69
  details.name.slice(NAME_PREFIX.length) + (0, import_node_path.extname)(details.path)
70
70
  );
71
71
  await createDirectory((0, import_node_path.dirname)(newPath2));
72
- await (0, import_promises.rename)(details.path, newPath2);
72
+ await (0, import_promises.copyFile)(details.path, newPath2);
73
73
  return { path: newPath2 };
74
74
  }
75
75
  const { screenshotsFolder } = config;
@@ -88,7 +88,7 @@ function registerArgosTask(on, config, options) {
88
88
  );
89
89
  const newPath = (0, import_node_path.join)(argosScreenshotsDir, relativePath);
90
90
  await createDirectory((0, import_node_path.dirname)(newPath));
91
- await (0, import_promises.rename)(details.path, newPath);
91
+ await (0, import_promises.copyFile)(details.path, newPath);
92
92
  return { path: (0, import_node_path.join)(argosScreenshotsDir, relativePath) };
93
93
  });
94
94
  on("after:run", async (results) => {
package/dist/task.js CHANGED
@@ -6,7 +6,7 @@ import { extname, join, dirname } from "node:path";
6
6
  var NAME_PREFIX = "argos/";
7
7
 
8
8
  // src/task.ts
9
- import { rename } from "node:fs/promises";
9
+ import { copyFile } from "node:fs/promises";
10
10
  function checkIsCypressFailedResult(results) {
11
11
  return "status" in results && results.status === "failed";
12
12
  }
@@ -35,7 +35,7 @@ function registerArgosTask(on, config, options) {
35
35
  details.name.slice(NAME_PREFIX.length) + extname(details.path)
36
36
  );
37
37
  await createDirectory(dirname(newPath2));
38
- await rename(details.path, newPath2);
38
+ await copyFile(details.path, newPath2);
39
39
  return { path: newPath2 };
40
40
  }
41
41
  const { screenshotsFolder } = config;
@@ -54,7 +54,7 @@ function registerArgosTask(on, config, options) {
54
54
  );
55
55
  const newPath = join(argosScreenshotsDir, relativePath);
56
56
  await createDirectory(dirname(newPath));
57
- await rename(details.path, newPath);
57
+ await copyFile(details.path, newPath);
58
58
  return { path: join(argosScreenshotsDir, relativePath) };
59
59
  });
60
60
  on("after:run", async (results) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@argos-ci/cypress",
3
3
  "description": "Cypress SDK for visual testing with Argos.",
4
- "version": "5.0.1",
4
+ "version": "5.0.3",
5
5
  "author": "Smooth Code",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -45,7 +45,7 @@
45
45
  "node": ">=18.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "@argos-ci/browser": "4.1.2",
48
+ "@argos-ci/browser": "4.1.3",
49
49
  "@argos-ci/core": "3.2.1",
50
50
  "@argos-ci/util": "2.3.2",
51
51
  "cypress-wait-until": "^3.0.2"
@@ -67,5 +67,5 @@
67
67
  "check-format": "prettier --check --ignore-unknown --ignore-path=../../.gitignore --ignore-path=../../.prettierignore .",
68
68
  "lint": "eslint ."
69
69
  },
70
- "gitHead": "1504eec02534235dc749f470150c37fc3beac1c0"
70
+ "gitHead": "2941a39afff53f3c28682f7763fe7973cb28372b"
71
71
  }