@autifyhq/autify-cli-integration-test 0.6.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.
Files changed (48) hide show
  1. package/__recordings__/{mobile%20build%20upload%20--workspace-id%20nYmF1n%20android.apk → mobile%20build%20upload%20--json%20--workspace-id%3DnYmF1n%20android.apk}/polly-proxy_3343057686/recording.har +5 -5
  2. package/__recordings__/mobile%20build%20upload%20--workspace-id%3DnYmF1n%20android.apk/polly-proxy_3343057686/recording.har +59 -0
  3. package/__recordings__/mobile%20build%20upload%20--workspace-id%3DnYmF1n%20ios.app/polly-proxy_3343057686/recording.har +59 -0
  4. package/__recordings__/mobile%20test%20run%20--build-id%3D8DuzpG%20--wait%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g/polly-proxy_3343057686/recording.har +675 -0
  5. package/__recordings__/{mobile%20test%20run%20--build-id%208DuzpG%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g → mobile%20test%20run%20--build-id%3D8DuzpG%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g}/polly-proxy_3343057686/recording.har +4 -4
  6. package/__recordings__/mobile%20test%20run%20--build-path%3Dandroid.apk%20--wait%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g/polly-proxy_3343057686/recording.har +679 -0
  7. package/__recordings__/{mobile%20test%20run%20--build-path%20android.apk%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g → mobile%20test%20run%20--build-path%3Dandroid.apk%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g}/polly-proxy_3343057686/recording.har +11 -11
  8. package/__recordings__/mobile%20test%20run%20--build-path%3Dios.app%20--wait%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDPjteo/polly-proxy_3343057686/recording.har +6050 -0
  9. package/__recordings__/{mobile%20test%20run%20--build-path%20ios.app%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDPjteo → mobile%20test%20run%20--build-path%3Dios.app%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDPjteo}/polly-proxy_3343057686/recording.har +13 -13
  10. package/__recordings__/{web%20test%20run%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Fscenarios%2F91437%20--wait → web%20test%20run%20--wait%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Fscenarios%2F91437}/polly-proxy_3343057686/recording.har +81 -81
  11. package/__recordings__/web%20test%20run%20https%3A%2F%2Fapp.autify.com%2Fprojects%2F743%2Fscenarios%2F91437/polly-proxy_3343057686/recording.har +11 -11
  12. package/__snapshots__/golden/mobileBuildUpload.test.js.snap +2 -2
  13. package/__snapshots__/golden/mobileBuildUploadIos.test.js.snap +12 -0
  14. package/__snapshots__/golden/mobileBuildUploadJson.test.js.snap +14 -0
  15. package/__snapshots__/golden/mobileTestRun.test.js.snap +3 -3
  16. package/__snapshots__/golden/mobileTestRunAndroid.test.js.snap +4 -4
  17. package/__snapshots__/golden/mobileTestRunAndroidWait.test.js.snap +31 -0
  18. package/__snapshots__/golden/mobileTestRunIos.test.js.snap +4 -4
  19. package/__snapshots__/golden/mobileTestRunIosWait.test.js.snap +162 -0
  20. package/__snapshots__/golden/mobileTestRunWait.test.js.snap +4 -20
  21. package/__snapshots__/golden/webTestRun.test.js.snap +3 -3
  22. package/__snapshots__/golden/webTestRunWait.test.js.snap +6 -6
  23. package/bin/autify-mobile-generate-fake-app.js +3 -0
  24. package/dist/bin/autify-cli-integration-test.js +1 -5
  25. package/dist/bin/autify-mobile-generate-fake-app.d.ts +1 -0
  26. package/dist/bin/autify-mobile-generate-fake-app.js +24 -0
  27. package/dist/bin/autify-with-proxy.js +3 -1
  28. package/dist/commands.d.ts +3 -0
  29. package/dist/commands.js +84 -0
  30. package/dist/test/golden/mobileBuildUpload.test.js +1 -1
  31. package/dist/test/golden/mobileBuildUploadIos.test.d.ts +1 -0
  32. package/dist/test/golden/mobileBuildUploadIos.test.js +5 -0
  33. package/dist/test/golden/mobileBuildUploadJson.test.d.ts +1 -0
  34. package/dist/test/golden/mobileBuildUploadJson.test.js +5 -0
  35. package/dist/test/golden/mobileTestRun.test.js +1 -1
  36. package/dist/test/golden/mobileTestRunAndroid.test.js +1 -1
  37. package/dist/test/golden/mobileTestRunAndroidWait.test.d.ts +1 -0
  38. package/dist/test/golden/mobileTestRunAndroidWait.test.js +5 -0
  39. package/dist/test/golden/mobileTestRunIos.test.js +1 -1
  40. package/dist/test/golden/mobileTestRunIosWait.test.d.ts +1 -0
  41. package/dist/test/golden/mobileTestRunIosWait.test.js +5 -0
  42. package/dist/test/golden/mobileTestRunWait.test.js +1 -1
  43. package/dist/test/golden/webTestRun.test.js +1 -1
  44. package/dist/test/golden/webTestRunWait.test.js +1 -1
  45. package/dist/test/helpers/testAutifyCliSnapshot.d.ts +0 -7
  46. package/dist/test/helpers/testAutifyCliSnapshot.js +12 -24
  47. package/package.json +3 -2
  48. package/__recordings__/mobile%20test%20run%20--build-id%208DuzpG%20https%3A%2F%2Fmobile-app.autify.com%2Fprojects%2FnYmF1n%2Ftest_plans%2FDEWt9g%20--wait/polly-proxy_3343057686/recording.har +0 -1331
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const node_fs_1 = require("node:fs");
4
+ const node_path_1 = require("node:path");
5
+ const commands_1 = require("../commands");
6
+ // https://commons.wikimedia.org/wiki/File:Transparent.gif
7
+ const tinyBinary = Buffer.from("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", "base64");
8
+ // Generate fake build files if not exiting.
9
+ // For recording, you should setup the real files on the same paths.
10
+ if ((0, node_fs_1.existsSync)(commands_1.iosBuildPath)) {
11
+ console.log(`${commands_1.iosBuildPath} already exists.`);
12
+ }
13
+ else {
14
+ (0, node_fs_1.mkdirSync)(commands_1.iosBuildPath); // *.app is a directory
15
+ (0, node_fs_1.writeFileSync)((0, node_path_1.join)(commands_1.iosBuildPath, "ios"), tinyBinary); // Add a fake binary file
16
+ console.log(`${commands_1.iosBuildPath} is created.`);
17
+ }
18
+ if ((0, node_fs_1.existsSync)(commands_1.androidBuildPath)) {
19
+ console.log(`${commands_1.androidBuildPath} already exists.`);
20
+ }
21
+ else {
22
+ (0, node_fs_1.writeFileSync)(commands_1.androidBuildPath, tinyBinary); // Create a fake binary file
23
+ console.log(`${commands_1.androidBuildPath} is created.`);
24
+ }
@@ -11,6 +11,7 @@ const node_path_1 = tslib_1.__importDefault(require("node:path"));
11
11
  const node_process_1 = require("node:process");
12
12
  const node_fs_1 = require("node:fs");
13
13
  const which_1 = tslib_1.__importDefault(require("which"));
14
+ const commands_1 = require("../commands");
14
15
  core_1.Polly.register(adapter_node_http_1.default);
15
16
  core_1.Polly.register(persister_fs_1.default);
16
17
  const { AUTIFY_POLLY_RECORD, AUTIFY_CLI_PATH } = node_process_1.env;
@@ -63,7 +64,8 @@ const startProxy = (target) => {
63
64
  const { port } = server.address();
64
65
  return { server, port };
65
66
  };
66
- const autifyWithProxy = async (args) => {
67
+ const autifyWithProxy = async (originalArgs) => {
68
+ const args = (0, commands_1.normalizeCommand)(originalArgs);
67
69
  const polly = await createPolly(args);
68
70
  const webProxy = startProxy("https://app.autify.com");
69
71
  const mobileProxy = startProxy("https://mobile-app.autify.com");
@@ -0,0 +1,3 @@
1
+ export declare const iosBuildPath = "ios.app";
2
+ export declare const androidBuildPath = "android.apk";
3
+ export declare const normalizeCommand: (args: string[]) => string[];
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeCommand = exports.androidBuildPath = exports.iosBuildPath = void 0;
4
+ exports.iosBuildPath = "ios.app";
5
+ exports.androidBuildPath = "android.apk";
6
+ const webTestScenarioUrl = "https://app.autify.com/projects/743/scenarios/91437";
7
+ const mobileAndroidTestPlanUrl = "https://mobile-app.autify.com/projects/nYmF1n/test_plans/DEWt9g";
8
+ const mobileIosTestPlanUrl = "https://mobile-app.autify.com/projects/nYmF1n/test_plans/DPjteo";
9
+ const mobileWorkspaceId = "nYmF1n";
10
+ const mobileAndroidBuildId = "8DuzpG";
11
+ const concatFlagAndValue = (args) => {
12
+ const newArgs = [];
13
+ let flag = null;
14
+ for (const arg of args) {
15
+ if (flag !== null) {
16
+ if (arg.startsWith("--")) {
17
+ newArgs.push(flag);
18
+ flag = arg;
19
+ continue;
20
+ }
21
+ else {
22
+ newArgs.push(`${flag}=${arg}`);
23
+ flag = null;
24
+ continue;
25
+ }
26
+ }
27
+ if (arg.startsWith("--")) {
28
+ flag = arg;
29
+ continue;
30
+ }
31
+ newArgs.push(arg);
32
+ }
33
+ if (flag !== null)
34
+ newArgs.push(flag);
35
+ return newArgs;
36
+ };
37
+ const replaceWebTestScenarioUrl = (arg) => {
38
+ const regExp = /^https:\/\/app.autify.com\/projects\/\d+\/scenarios\/\d+\/?$/;
39
+ return regExp.test(arg) ? webTestScenarioUrl : arg;
40
+ };
41
+ const replaceMobileTetsPlanUrl = (arg, os) => {
42
+ const regExp = /^https:\/\/mobile-app.autify.com\/projects\/[^/]+\/test_plans\/[^/]+\/?$/;
43
+ if (regExp.test(arg)) {
44
+ if (os === "android")
45
+ return mobileAndroidTestPlanUrl;
46
+ if (os === "ios")
47
+ return mobileIosTestPlanUrl;
48
+ }
49
+ return arg;
50
+ };
51
+ const replaceMobileWorkspaceId = (arg) => arg.startsWith("--workspace-id=")
52
+ ? `--workspace-id=${mobileWorkspaceId}`
53
+ : arg;
54
+ const replaceMobileAndroidBuildId = (arg) => arg.startsWith("--build-id=") ? `--build-id=${mobileAndroidBuildId}` : arg;
55
+ const replaceMobileAndroidBuildPath = (arg) => arg.replace(/^(--[^=]+=)?.+\.apk$/, `$1${exports.androidBuildPath}`);
56
+ const replaceMobileIosBuildPath = (arg) => arg.replace(/^(--[^=]+=)?.+\.app$/, `$1${exports.iosBuildPath}`);
57
+ const sortParameters = (args) => {
58
+ // Currently assuming the first three arguments are for command and the rest are parameters.
59
+ const command = args.slice(0, 3);
60
+ const parameters = args.slice(3);
61
+ return [...command, ...parameters.sort()];
62
+ };
63
+ // Assuming ios command contains .app
64
+ const isIos = (args) => args.some((a) => a.endsWith(".app"));
65
+ const replaceConstants = (args) => {
66
+ if (args[0] === "web") {
67
+ return args.map((a) => replaceWebTestScenarioUrl(a));
68
+ }
69
+ if (args[0] === "mobile") {
70
+ return isIos(args)
71
+ ? args
72
+ .map((a) => replaceMobileWorkspaceId(a))
73
+ .map((a) => replaceMobileTetsPlanUrl(a, "ios"))
74
+ .map((a) => replaceMobileIosBuildPath(a))
75
+ : args
76
+ .map((a) => replaceMobileWorkspaceId(a))
77
+ .map((a) => replaceMobileTetsPlanUrl(a, "android"))
78
+ .map((a) => replaceMobileAndroidBuildId(a))
79
+ .map((a) => replaceMobileAndroidBuildPath(a));
80
+ }
81
+ return args;
82
+ };
83
+ const normalizeCommand = (args) => replaceConstants(sortParameters(concatFlagAndValue(args)));
84
+ exports.normalizeCommand = normalizeCommand;
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable unicorn/filename-case */
4
4
  const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
5
- (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)(testAutifyCliSnapshot_1.mobileBuildUpload);
5
+ (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("mobile build upload /path/to/app-debug.apk --workspace-id AAA");
@@ -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");
@@ -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/app-debug.apk --workspace-id AAA --json");
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable unicorn/filename-case */
4
4
  const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
5
- (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)(testAutifyCliSnapshot_1.mobileTestRun);
5
+ (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("mobile test run https://mobile-app.autify.com/projects/AAA/test_plans/BBB --build-id CCC");
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable unicorn/filename-case */
4
4
  const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
5
- (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)(testAutifyCliSnapshot_1.mobileTestRunAndroid);
5
+ (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("mobile test run https://mobile-app.autify.com/projects/AAA/test_plans/BBB --build-path /path/to/app-debug.apk");
@@ -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 test run https://mobile-app.autify.com/projects/AAA/test_plans/BBB --build-path /path/to/app-debug.apk --wait");
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable unicorn/filename-case */
4
4
  const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
5
- (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)(testAutifyCliSnapshot_1.mobileTestRunIos);
5
+ (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("mobile test run https://mobile-app.autify.com/projects/AAA/test_plans/BBB --build-path /path/to/MyApp.app");
@@ -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 test run https://mobile-app.autify.com/projects/AAA/test_plans/BBB --build-path /path/to/MyApp.app --wait");
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable unicorn/filename-case */
4
4
  const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
5
- (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)(testAutifyCliSnapshot_1.mobileTestRunWait);
5
+ (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("mobile test run https://mobile-app.autify.com/projects/AAA/test_plans/BBB --build-id CCC --wait");
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable unicorn/filename-case */
4
4
  const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
5
- (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)(testAutifyCliSnapshot_1.webTestRun);
5
+ (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("web test run https://app.autify.com/projects/0000/scenarios/0000");
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  /* eslint-disable unicorn/filename-case */
4
4
  const testAutifyCliSnapshot_1 = require("../helpers/testAutifyCliSnapshot");
5
- (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)(testAutifyCliSnapshot_1.webTestRunWait);
5
+ (0, testAutifyCliSnapshot_1.testAutifyCliSnapshot)("web test run https://app.autify.com/projects/0000/scenarios/0000 --wait");
@@ -1,8 +1 @@
1
- export declare const webTestRun = "web test run https://app.autify.com/projects/743/scenarios/91437";
2
- export declare const webTestRunWait = "web test run https://app.autify.com/projects/743/scenarios/91437 --wait";
3
- export declare const mobileBuildUpload: string;
4
- export declare const mobileTestRun = "mobile test run --build-id 8DuzpG https://mobile-app.autify.com/projects/nYmF1n/test_plans/DEWt9g";
5
- export declare const mobileTestRunWait = "mobile test run --build-id 8DuzpG https://mobile-app.autify.com/projects/nYmF1n/test_plans/DEWt9g --wait";
6
- export declare const mobileTestRunAndroid: string;
7
- export declare const mobileTestRunIos: string;
8
1
  export declare const testAutifyCliSnapshot: (command: string) => void;
@@ -1,32 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.testAutifyCliSnapshot = exports.mobileTestRunIos = exports.mobileTestRunAndroid = exports.mobileTestRunWait = exports.mobileTestRun = exports.mobileBuildUpload = exports.webTestRunWait = exports.webTestRun = void 0;
3
+ exports.testAutifyCliSnapshot = void 0;
4
4
  /* eslint-disable unicorn/filename-case */
5
- const node_fs_1 = require("node:fs");
6
- const node_path_1 = require("node:path");
5
+ const node_process_1 = require("node:process");
7
6
  const execAutifyCli_1 = require("../helpers/execAutifyCli");
8
- const iosBuildPath = "ios.app";
9
- const androidBuildPath = "android.apk";
10
- // https://commons.wikimedia.org/wiki/File:Transparent.gif
11
- const tinyBinary = Buffer.from("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", "base64");
12
- // Generate fake build files if not exiting.
13
- // For recording, you should setup the real files on the same paths.
14
- if (!(0, node_fs_1.existsSync)(iosBuildPath)) {
15
- (0, node_fs_1.mkdirSync)(iosBuildPath); // *.app is a directory
16
- (0, node_fs_1.writeFileSync)((0, node_path_1.join)(iosBuildPath, "ios"), tinyBinary); // Add a fake binary file
17
- }
18
- if (!(0, node_fs_1.existsSync)(androidBuildPath)) {
19
- (0, node_fs_1.writeFileSync)(androidBuildPath, tinyBinary); // Create a fake binary file
20
- }
21
- exports.webTestRun = "web test run https://app.autify.com/projects/743/scenarios/91437";
22
- exports.webTestRunWait = "web test run https://app.autify.com/projects/743/scenarios/91437 --wait";
23
- exports.mobileBuildUpload = `mobile build upload --workspace-id nYmF1n ${androidBuildPath}`;
24
- exports.mobileTestRun = "mobile test run --build-id 8DuzpG https://mobile-app.autify.com/projects/nYmF1n/test_plans/DEWt9g";
25
- exports.mobileTestRunWait = "mobile test run --build-id 8DuzpG https://mobile-app.autify.com/projects/nYmF1n/test_plans/DEWt9g --wait";
26
- exports.mobileTestRunAndroid = `mobile test run --build-path ${androidBuildPath} https://mobile-app.autify.com/projects/nYmF1n/test_plans/DEWt9g`;
27
- exports.mobileTestRunIos = `mobile test run --build-path ${iosBuildPath} https://mobile-app.autify.com/projects/nYmF1n/test_plans/DPjteo`;
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
+ };
28
16
  const testAutifyCliSnapshot = (command) => {
29
- test(`autify ${command}`, async () => {
17
+ (isSkip(command) ? test.skip : test)(`autify ${command}`, async () => {
30
18
  expect(await (0, execAutifyCli_1.execAutifyCli)(command)).toMatchSnapshot();
31
19
  }, 300000);
32
20
  };
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@autifyhq/autify-cli-integration-test",
3
- "version": "0.6.1",
3
+ "version": "0.7.2",
4
4
  "description": "Autify Command Line Interface (CLI) Integration Test",
5
5
  "author": "Autify",
6
6
  "bin": {
7
7
  "autify-cli-integration-test": "bin/autify-cli-integration-test.js",
8
+ "autify-mobile-generate-fake-app": "bin/autify-mobile-generate-fake-app.js",
8
9
  "autify-with-proxy": "bin/autify-with-proxy.js"
9
10
  },
10
11
  "homepage": "https://github.com/autifyhq/autify-cli",
@@ -45,7 +46,7 @@
45
46
  "scripts": {
46
47
  "build": "shx rm -rf dist && tsc -b",
47
48
  "prepack": "npm run build",
48
- "test": "cross-env AUTIFY_TEST_WAIT_INTERVAL_SECOND=0 jest dist/test",
49
+ "test": "autify-mobile-generate-fake-app && cross-env AUTIFY_TEST_WAIT_INTERVAL_SECOND=0 jest dist/test",
49
50
  "test:record": "AUTIFY_POLLY_RECORD=1 jest dist/test --updateSnapshot"
50
51
  },
51
52
  "engines": {