@autifyhq/autify-cli-integration-test 0.7.0 → 0.7.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.
|
File without changes
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/* eslint-disable unicorn/filename-case */
|
|
4
3
|
const node_fs_1 = require("node:fs");
|
|
5
4
|
const node_path_1 = require("node:path");
|
|
6
|
-
const commands_1 = require("
|
|
5
|
+
const commands_1 = require("../commands");
|
|
7
6
|
// https://commons.wikimedia.org/wiki/File:Transparent.gif
|
|
8
7
|
const tinyBinary = Buffer.from("R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", "base64");
|
|
9
8
|
// Generate fake build files if not exiting.
|
|
@@ -14,10 +13,12 @@ if ((0, node_fs_1.existsSync)(commands_1.iosBuildPath)) {
|
|
|
14
13
|
else {
|
|
15
14
|
(0, node_fs_1.mkdirSync)(commands_1.iosBuildPath); // *.app is a directory
|
|
16
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
17
|
}
|
|
18
18
|
if ((0, node_fs_1.existsSync)(commands_1.androidBuildPath)) {
|
|
19
19
|
console.log(`${commands_1.androidBuildPath} already exists.`);
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
22
|
(0, node_fs_1.writeFileSync)(commands_1.androidBuildPath, tinyBinary); // Create a fake binary file
|
|
23
|
+
console.log(`${commands_1.androidBuildPath} is created.`);
|
|
23
24
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autifyhq/autify-cli-integration-test",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
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,8 +46,7 @@
|
|
|
45
46
|
"scripts": {
|
|
46
47
|
"build": "shx rm -rf dist && tsc -b",
|
|
47
48
|
"prepack": "npm run build",
|
|
48
|
-
"generate-fake-app
|
|
49
|
-
"test": "npm run generate-fake-app && 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",
|
|
50
50
|
"test:record": "AUTIFY_POLLY_RECORD=1 jest dist/test --updateSnapshot"
|
|
51
51
|
},
|
|
52
52
|
"engines": {
|