@autifyhq/autify-cli-integration-test 0.7.1 → 0.7.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/__recordings__/mobile%20build%20upload%20--workspace-id%3DnYmF1n%20ios.app/polly-proxy_3343057686/recording.har +59 -0
- package/__snapshots__/golden/mobileBuildUploadIos.test.js.snap +12 -0
- package/dist/bin/autify-cli-integration-test.js +1 -5
- package/dist/test/golden/mobileBuildUploadIos.test.d.ts +1 -0
- package/dist/test/golden/mobileBuildUploadIos.test.js +5 -0
- package/dist/test/helpers/testAutifyCliSnapshot.js +11 -1
- package/package.json +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"log": {
|
|
3
|
+
"_recordingName": "polly-proxy",
|
|
4
|
+
"creator": {
|
|
5
|
+
"comment": "persister:fs",
|
|
6
|
+
"name": "Polly.JS",
|
|
7
|
+
"version": "6.0.5"
|
|
8
|
+
},
|
|
9
|
+
"entries": [
|
|
10
|
+
{
|
|
11
|
+
"_id": "7df49c91ebfbf219d57667e05fd60fe8",
|
|
12
|
+
"_order": 0,
|
|
13
|
+
"cache": {},
|
|
14
|
+
"request": {
|
|
15
|
+
"bodySize": 0,
|
|
16
|
+
"cookies": [],
|
|
17
|
+
"headers": [],
|
|
18
|
+
"headersSize": 396,
|
|
19
|
+
"httpVersion": "HTTP/1.1",
|
|
20
|
+
"method": "POST",
|
|
21
|
+
"postData": {
|
|
22
|
+
"mimeType": "multipart/form-data; boundary=--------------------------495603915481196874159158",
|
|
23
|
+
"params": []
|
|
24
|
+
},
|
|
25
|
+
"queryString": [],
|
|
26
|
+
"url": "https://mobile-app.autify.com/api/v1/projects/nYmF1n/builds"
|
|
27
|
+
},
|
|
28
|
+
"response": {
|
|
29
|
+
"bodySize": 15,
|
|
30
|
+
"content": {
|
|
31
|
+
"mimeType": "application/json; charset=utf-8",
|
|
32
|
+
"size": 15,
|
|
33
|
+
"text": "{\"id\":\"gquRM0\"}"
|
|
34
|
+
},
|
|
35
|
+
"cookies": [],
|
|
36
|
+
"headers": [],
|
|
37
|
+
"headersSize": 612,
|
|
38
|
+
"httpVersion": "HTTP/1.1",
|
|
39
|
+
"redirectURL": "",
|
|
40
|
+
"status": 201,
|
|
41
|
+
"statusText": "Created"
|
|
42
|
+
},
|
|
43
|
+
"startedDateTime": "2022-08-30T16:29:49.338Z",
|
|
44
|
+
"time": 15006,
|
|
45
|
+
"timings": {
|
|
46
|
+
"blocked": -1,
|
|
47
|
+
"connect": -1,
|
|
48
|
+
"dns": -1,
|
|
49
|
+
"receive": 0,
|
|
50
|
+
"send": 0,
|
|
51
|
+
"ssl": -1,
|
|
52
|
+
"wait": 15006
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"pages": [],
|
|
57
|
+
"version": "1.2"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`autify mobile build upload /path/to/ios.app --workspace-id AAA 1`] = `
|
|
4
|
+
Object {
|
|
5
|
+
"stderr": "",
|
|
6
|
+
"stdout": "[HPM] Proxy created: / -> https://app.autify.com
|
|
7
|
+
[HPM] Proxy created: / -> https://mobile-app.autify.com
|
|
8
|
+
✅ Successfully uploaded ios.app (ID: gquRM0). See https://mobile-app.autify.com/projects/nYmF1n/builds?os=ios&selectedBuildId=gquRM0&page=1
|
|
9
|
+
[HPM] server close signal received: closing proxy server
|
|
10
|
+
",
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
@@ -2,17 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const node_child_process_1 = require("node:child_process");
|
|
5
|
-
const node_os_1 = require("node:os");
|
|
6
5
|
const node_path_1 = tslib_1.__importDefault(require("node:path"));
|
|
7
6
|
const node_process_1 = require("node:process");
|
|
8
7
|
// eslint-disable-next-line unicorn/prefer-module
|
|
9
8
|
const scriptDir = __dirname;
|
|
10
9
|
const rootDir = node_path_1.default.join(scriptDir, "..", "..");
|
|
11
10
|
const isRecord = node_process_1.argv[2] === "--record";
|
|
12
|
-
|
|
13
|
-
if ((0, node_os_1.platform)() === "win32") {
|
|
14
|
-
command = `${command} -- --testPathIgnorePatterns mobileTestRunIos`;
|
|
15
|
-
}
|
|
11
|
+
const command = isRecord ? "test:record" : "test";
|
|
16
12
|
(0, node_child_process_1.execSync)(`npm run ${command}`, {
|
|
17
13
|
stdio: "inherit",
|
|
18
14
|
cwd: rootDir,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/* eslint-disable unicorn/filename-case */
|
|
4
|
+
const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
|
|
5
|
+
(0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("mobile build upload /path/to/ios.app --workspace-id AAA");
|
|
@@ -2,9 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.testAutifyCliSnapshot = void 0;
|
|
4
4
|
/* eslint-disable unicorn/filename-case */
|
|
5
|
+
const node_process_1 = require("node:process");
|
|
5
6
|
const execAutifyCli_1 = require("../helpers/execAutifyCli");
|
|
7
|
+
const isSkip = (command) => {
|
|
8
|
+
// Windows doesn't support autify mobile with iOS app upload so far.
|
|
9
|
+
if (node_process_1.platform === "win32" &&
|
|
10
|
+
command.startsWith("mobile") &&
|
|
11
|
+
command.includes(".app")) {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
return false;
|
|
15
|
+
};
|
|
6
16
|
const testAutifyCliSnapshot = (command) => {
|
|
7
|
-
test(`autify ${command}`, async () => {
|
|
17
|
+
(isSkip(command) ? test.skip : test)(`autify ${command}`, async () => {
|
|
8
18
|
expect(await (0, execAutifyCli_1.execAutifyCli)(command)).toMatchSnapshot();
|
|
9
19
|
}, 300000);
|
|
10
20
|
};
|