@argos-ci/core 2.4.0 → 2.4.1
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/index.d.ts +44 -14
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,25 +1,51 @@
|
|
|
1
1
|
interface UploadParameters {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Globs matching image file paths to upload
|
|
4
|
+
*/
|
|
3
5
|
files?: string[];
|
|
4
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* Root directory to look for image to upload
|
|
8
|
+
* @default process.cwd()
|
|
9
|
+
*/
|
|
5
10
|
root?: string;
|
|
6
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Globs matching image file paths to ignore
|
|
13
|
+
* @default ["**\/*.\{png,jpg,jpeg\}"]
|
|
14
|
+
*/
|
|
7
15
|
ignore?: string[];
|
|
8
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Base URL of Argos API
|
|
18
|
+
* @default "https://api.argos-ci.com/v2/"
|
|
19
|
+
*/
|
|
9
20
|
apiBaseUrl?: string;
|
|
10
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* Git commit
|
|
23
|
+
*/
|
|
11
24
|
commit?: string;
|
|
12
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Git branch
|
|
27
|
+
*/
|
|
13
28
|
branch?: string;
|
|
14
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* Argos repository token
|
|
31
|
+
*/
|
|
15
32
|
token?: string;
|
|
16
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Pull-request number
|
|
35
|
+
*/
|
|
17
36
|
prNumber?: number;
|
|
18
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Name of the build used to trigger multiple Argos builds on one commit
|
|
39
|
+
*/
|
|
19
40
|
buildName?: string;
|
|
20
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* Mode of comparison applied
|
|
43
|
+
* @default "ci"
|
|
44
|
+
*/
|
|
21
45
|
mode?: "ci" | "monitoring";
|
|
22
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
Parallel test suite mode
|
|
48
|
+
*/
|
|
23
49
|
parallel?: {
|
|
24
50
|
/** Unique build ID for this parallel build */
|
|
25
51
|
nonce: string;
|
|
@@ -28,9 +54,13 @@ interface UploadParameters {
|
|
|
28
54
|
/** The index of the parallel node */
|
|
29
55
|
index?: number;
|
|
30
56
|
} | false;
|
|
31
|
-
/**
|
|
57
|
+
/**
|
|
58
|
+
* Branch used as baseline for screenshot comparison
|
|
59
|
+
*/
|
|
32
60
|
referenceBranch?: string;
|
|
33
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Commit used as baseline for screenshot comparison
|
|
63
|
+
*/
|
|
34
64
|
referenceCommit?: string;
|
|
35
65
|
/**
|
|
36
66
|
* Sensitivity threshold between 0 and 1.
|
|
@@ -40,7 +70,7 @@ interface UploadParameters {
|
|
|
40
70
|
threshold?: number;
|
|
41
71
|
}
|
|
42
72
|
/**
|
|
43
|
-
* Upload screenshots to
|
|
73
|
+
* Upload screenshots to Argos.
|
|
44
74
|
*/
|
|
45
75
|
declare function upload(params: UploadParameters): Promise<{
|
|
46
76
|
build: {
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argos-ci/core",
|
|
3
3
|
"description": "Visual testing solution to avoid visual regression. The core component of Argos SDK that handles build creation.",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"build": "rollup -c",
|
|
60
60
|
"e2e": "node ./e2e/upload.cjs && node ./e2e/upload.mjs"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "8fbd0bb85ba9df1e8ca39d46acfe9903264d0b51"
|
|
63
63
|
}
|