@visual-regression-tracker/agent-cypress 5.9.0 → 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/README.md +9 -1
- package/dist/utils.js +14 -17
- package/package.json +13 -13
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Adds `cy.vrtStart()`, `cy.vrtTrack()` and `cy.vrtStop()` to [Cypress](https://ww
|
|
|
7
7
|
## Requirements
|
|
8
8
|
|
|
9
9
|
- Cypress 12.17.1 or later
|
|
10
|
-
- Node.js
|
|
10
|
+
- Node.js 26 or later
|
|
11
11
|
- Visual Regression Tracker server 5.0.8 or later; 6 is recommended
|
|
12
12
|
|
|
13
13
|
## Install
|
|
@@ -170,6 +170,14 @@ Every push to `master` runs [semantic-release](https://semantic-release.gitbook.
|
|
|
170
170
|
It then publishes to npm through trusted publishing with provenance, tags `vX.Y.Z`, and writes the GitHub release.
|
|
171
171
|
The `version` field in `package.json` is a placeholder. The released version lives in the tags and on npm.
|
|
172
172
|
|
|
173
|
+
### Release candidates
|
|
174
|
+
|
|
175
|
+
Every push to `next` releases a pre-release of the next version, `X.Y.Z-rc.N` (`6.0.0-rc.1` once a breaking change is in). It goes to npm under the `next` dist-tag, never `latest`: `npm install @visual-regression-tracker/agent-cypress@next` installs the candidate, and a plain install keeps getting the last stable release. Its GitHub release is marked as a pre-release.
|
|
176
|
+
|
|
177
|
+
Breaking changes go into `next` through pull requests that target it. Merge `master` into `next` when `master` gets new commits.
|
|
178
|
+
|
|
179
|
+
To release the final version, merge `next` into `master` with a merge commit, not a squash, so that semantic-release still sees the breaking commits. That push releases it to `latest`. The repository deletes merged branches, so create `next` again from `master` before the next round of candidates.
|
|
180
|
+
|
|
173
181
|
## License
|
|
174
182
|
|
|
175
183
|
[Apache-2.0](LICENSE)
|
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": "
|
|
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/",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "tsc",
|
|
12
|
-
"test": "
|
|
12
|
+
"test": "tsc -p tsconfig.spec.json && vitest run",
|
|
13
13
|
"semantic-release": "semantic-release"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
@@ -28,19 +28,16 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/Visual-Regression-Tracker/agent-cypress#readme",
|
|
30
30
|
"engines": {
|
|
31
|
-
"node": ">=
|
|
31
|
+
"node": ">=26"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@visual-regression-tracker/sdk-js": "^5.8.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"@types/jest": "^30.0.0",
|
|
39
|
-
"@types/node": "^22.20.5",
|
|
37
|
+
"@types/node": "^26.6.6",
|
|
40
38
|
"cypress": "^16.2.1",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"typescript": "^6.0.3"
|
|
39
|
+
"typescript": "^7.0.2",
|
|
40
|
+
"vitest": "^5.1.0"
|
|
44
41
|
},
|
|
45
42
|
"peerDependencies": {
|
|
46
43
|
"cypress": ">=12.17.1"
|
|
@@ -48,11 +45,14 @@
|
|
|
48
45
|
"publishConfig": {
|
|
49
46
|
"access": "public"
|
|
50
47
|
},
|
|
51
|
-
"overrides": {
|
|
52
|
-
"glob": "^14.0.2",
|
|
53
|
-
"minimatch": "^11.0.1"
|
|
54
|
-
},
|
|
55
48
|
"release": {
|
|
49
|
+
"branches": [
|
|
50
|
+
"master",
|
|
51
|
+
{
|
|
52
|
+
"name": "next",
|
|
53
|
+
"prerelease": "rc"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
56
|
"preset": "conventionalcommits"
|
|
57
57
|
}
|
|
58
58
|
}
|