@argos-ci/cypress 1.0.0 → 1.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.mjs +2 -3
- package/package.json +4 -4
package/dist/support.mjs
CHANGED
|
@@ -3,8 +3,7 @@ import { resolveViewport } from '@argos-ci/browser';
|
|
|
3
3
|
import { getScreenshotName, getMetadataPath } from '@argos-ci/util/browser';
|
|
4
4
|
|
|
5
5
|
function injectArgos() {
|
|
6
|
-
|
|
7
|
-
const fileName = typeof ((_require = require) === null || _require === void 0 ? void 0 : _require.resolve) === "function" ? require.resolve("@argos-ci/browser/global.js") : "node_modules/@argos-ci/browser/dist/global.js";
|
|
6
|
+
const fileName = typeof require.resolve === "function" ? require.resolve("@argos-ci/browser/global.js") : "node_modules/@argos-ci/browser/dist/global.js";
|
|
8
7
|
cy.readFile(fileName).then((source)=>cy.window({
|
|
9
8
|
log: false
|
|
10
9
|
}).then((window)=>{
|
|
@@ -12,7 +11,7 @@ function injectArgos() {
|
|
|
12
11
|
}));
|
|
13
12
|
}
|
|
14
13
|
function readArgosCypressVersion() {
|
|
15
|
-
const fileName = require.resolve("@argos-ci/cypress/package.json");
|
|
14
|
+
const fileName = typeof require.resolve === "function" ? require.resolve("@argos-ci/cypress/package.json") : "node_modules/@argos-ci/cypress/package.json";
|
|
16
15
|
return cy.readFile(fileName).then((source)=>{
|
|
17
16
|
return source.version;
|
|
18
17
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/cypress",
|
|
3
3
|
"description": "Visual testing solution to avoid visual regression. Cypress commands and utilities for Argos visual testing.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"author": "Smooth Code",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@argos-ci/browser": "1.0.0",
|
|
39
|
-
"@argos-ci/util": "1.
|
|
39
|
+
"@argos-ci/util": "1.1.0",
|
|
40
40
|
"cypress-wait-until": "^1.7.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"cypress": "^12.0.0 || ^13.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@argos-ci/cli": "1.0.
|
|
46
|
+
"@argos-ci/cli": "1.0.2",
|
|
47
47
|
"@argos-ci/cypress": "workspace:.",
|
|
48
48
|
"@types/node": "^16.0.0",
|
|
49
49
|
"cypress": "^13.3.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"argos-upload": "pnpm exec argos upload cypress/screenshots --build-name \"argos-cypress-e2e-node-$NODE_VERSION-$OS\"",
|
|
58
58
|
"e2e": "pnpm run test && pnpm run argos-upload"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "47a939474ca0c0d55ca5360dcaa5f8912547ed76"
|
|
61
61
|
}
|