@argos-ci/cypress 5.0.0 → 5.0.2
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 +1 -1
- package/dist/task.cjs +3 -3
- package/dist/task.js +4 -4
- package/package.json +2 -2
package/dist/support.js
CHANGED
package/dist/task.cjs
CHANGED
|
@@ -63,13 +63,13 @@ function registerArgosTask(on, config, options) {
|
|
|
63
63
|
return { path: details.path };
|
|
64
64
|
}
|
|
65
65
|
const argosScreenshotsDir = await getScreenshotsDirectory();
|
|
66
|
-
if (details.name
|
|
66
|
+
if (details.name?.startsWith(NAME_PREFIX)) {
|
|
67
67
|
const newPath2 = (0, import_node_path.join)(
|
|
68
68
|
argosScreenshotsDir,
|
|
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.
|
|
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.
|
|
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 {
|
|
9
|
+
import { copyFile } from "node:fs/promises";
|
|
10
10
|
function checkIsCypressFailedResult(results) {
|
|
11
11
|
return "status" in results && results.status === "failed";
|
|
12
12
|
}
|
|
@@ -29,13 +29,13 @@ function registerArgosTask(on, config, options) {
|
|
|
29
29
|
return { path: details.path };
|
|
30
30
|
}
|
|
31
31
|
const argosScreenshotsDir = await getScreenshotsDirectory();
|
|
32
|
-
if (details.name
|
|
32
|
+
if (details.name?.startsWith(NAME_PREFIX)) {
|
|
33
33
|
const newPath2 = join(
|
|
34
34
|
argosScreenshotsDir,
|
|
35
35
|
details.name.slice(NAME_PREFIX.length) + extname(details.path)
|
|
36
36
|
);
|
|
37
37
|
await createDirectory(dirname(newPath2));
|
|
38
|
-
await
|
|
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
|
|
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.
|
|
4
|
+
"version": "5.0.2",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -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": "
|
|
70
|
+
"gitHead": "6d24ad5f6fd78fd940d0234266722e06585c63b4"
|
|
71
71
|
}
|