@visual-regression-tracker/agent-cypress 6.0.0-rc.1 → 6.0.0
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/utils.js +14 -17
- package/package.json +2 -2
package/dist/utils.js
CHANGED
|
@@ -28,23 +28,20 @@ const handleError = (err) => {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
exports.handleError = handleError;
|
|
31
|
-
const toTestRunDto = ({ name, pixelRatio = 1, options, }) => {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
retryLimit: options === null || options === void 0 ? void 0 : options.retryLimit,
|
|
46
|
-
});
|
|
47
|
-
};
|
|
31
|
+
const toTestRunDto = ({ name, pixelRatio = 1, options, }) => { var _a; return ({
|
|
32
|
+
name,
|
|
33
|
+
browser: Cypress.browser.name,
|
|
34
|
+
viewport: (_a = options === null || options === void 0 ? void 0 : options.viewport) !== null && _a !== void 0 ? _a : `${Cypress.config("viewportWidth") * pixelRatio}x${Cypress.config("viewportHeight") * pixelRatio}`,
|
|
35
|
+
os: options === null || options === void 0 ? void 0 : options.os,
|
|
36
|
+
device: options === null || options === void 0 ? void 0 : options.device,
|
|
37
|
+
customTags: options === null || options === void 0 ? void 0 : options.customTags,
|
|
38
|
+
comment: options === null || options === void 0 ? void 0 : options.comment,
|
|
39
|
+
diffTollerancePercent: options === null || options === void 0 ? void 0 : options.diffTollerancePercent,
|
|
40
|
+
ignoreAreas: options === null || options === void 0 ? void 0 : options.ignoreAreas,
|
|
41
|
+
// next two properties actually do not belong to TestRunDto and ideally should be removed from this object
|
|
42
|
+
keepScreenshot: options === null || options === void 0 ? void 0 : options.keepScreenshot,
|
|
43
|
+
retryLimit: options === null || options === void 0 ? void 0 : options.retryLimit,
|
|
44
|
+
}); };
|
|
48
45
|
exports.toTestRunDto = toTestRunDto;
|
|
49
46
|
const checkResult = (result, errorCallback) => {
|
|
50
47
|
if (typeof result === "string") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visual-regression-tracker/agent-cypress",
|
|
3
|
-
"version": "6.0.0
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Visual Regression Tracker integration plugin for Cypress",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/node": "^26.6.6",
|
|
38
38
|
"cypress": "^16.2.1",
|
|
39
|
-
"typescript": "^
|
|
39
|
+
"typescript": "^7.0.2",
|
|
40
40
|
"vitest": "^5.1.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|