@appium/plugin-test-support 0.3.38 → 0.3.40
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/build/lib/harness.d.ts +13 -13
- package/build/lib/harness.d.ts.map +1 -1
- package/build/lib/harness.js +5 -2
- package/build/lib/harness.js.map +1 -1
- package/lib/harness.js +5 -0
- package/package.json +4 -4
- package/tsconfig.json +1 -1
package/build/lib/harness.d.ts
CHANGED
|
@@ -21,15 +21,15 @@ export type E2ESetupOpts = {
|
|
|
21
21
|
* - Arguments to pass to Appium server
|
|
22
22
|
*/
|
|
23
23
|
serverArgs?: Partial<{
|
|
24
|
-
subcommand?: import("appium/types").CliCommand
|
|
25
|
-
configFile?: string
|
|
26
|
-
showConfig?: boolean
|
|
27
|
-
showDebugInfo?: boolean
|
|
28
|
-
shell?: boolean
|
|
29
|
-
throwInsteadOfExit?: boolean
|
|
30
|
-
logHandler?: (
|
|
31
|
-
appiumHome?: string
|
|
32
|
-
showBuildInfo?: boolean
|
|
24
|
+
subcommand?: import("appium/types").CliCommand;
|
|
25
|
+
configFile?: string;
|
|
26
|
+
showConfig?: boolean;
|
|
27
|
+
showDebugInfo?: boolean;
|
|
28
|
+
shell?: boolean;
|
|
29
|
+
throwInsteadOfExit?: boolean;
|
|
30
|
+
logHandler?: (...args: any[]) => void;
|
|
31
|
+
appiumHome?: string;
|
|
32
|
+
showBuildInfo?: boolean;
|
|
33
33
|
driver?: import("@appium/types").DriverConfig | undefined;
|
|
34
34
|
plugin?: import("@appium/types").PluginConfig | undefined;
|
|
35
35
|
address?: string | undefined;
|
|
@@ -69,7 +69,7 @@ export type E2ESetupOpts = {
|
|
|
69
69
|
/**
|
|
70
70
|
* - Source of driver to install
|
|
71
71
|
*/
|
|
72
|
-
driverSource: import(
|
|
72
|
+
driverSource: import("appium/types").InstallType & string;
|
|
73
73
|
/**
|
|
74
74
|
* - Package name of driver to install
|
|
75
75
|
*/
|
|
@@ -85,7 +85,7 @@ export type E2ESetupOpts = {
|
|
|
85
85
|
/**
|
|
86
86
|
* - Source of plugin to install
|
|
87
87
|
*/
|
|
88
|
-
pluginSource: import(
|
|
88
|
+
pluginSource: import("appium/types").InstallType & string;
|
|
89
89
|
/**
|
|
90
90
|
* - Package name of plugin to install
|
|
91
91
|
*/
|
|
@@ -107,6 +107,6 @@ export type E2ESetupOpts = {
|
|
|
107
107
|
*/
|
|
108
108
|
host?: string | undefined;
|
|
109
109
|
};
|
|
110
|
-
export type AppiumServer = import(
|
|
111
|
-
export type AppiumEnv = import(
|
|
110
|
+
export type AppiumServer = import("@appium/types").AppiumServer;
|
|
111
|
+
export type AppiumEnv = import("appium/types").AppiumEnv;
|
|
112
112
|
//# sourceMappingURL=harness.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../lib/harness.js"],"names":[],"mappings":"AASA;;;;GAIG;AACH,uCAHW,YAAY,GACV,IAAI,
|
|
1
|
+
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../lib/harness.js"],"names":[],"mappings":"AASA;;;;GAIG;AACH,uCAHW,YAAY,GACV,IAAI,CAiIhB;;;;;;;;;;;;;;;;;;;;;;;;sBAhEuE,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAwE7D,OAAO,cAAc,EAAE,WAAW,GAAG,MAAM;;;;;;;;gBAE3C,MAAM;;;;gBACN,MAAM;;;;kBACN,OAAO,cAAc,EAAE,WAAW,GAAG,MAAM;;;;;;;;gBAE3C,MAAM;;;;gBACN,MAAM;;;;;;;;;;2BAMP,OAAO,eAAe,EAAE,YAAY;wBAIpC,OAAO,cAAc,EAAE,SAAS"}
|
package/build/lib/harness.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.pluginE2EHarness =
|
|
6
|
+
exports.pluginE2EHarness = pluginE2EHarness;
|
|
7
7
|
/* eslint-disable no-console */
|
|
8
8
|
const support_1 = require("appium/support");
|
|
9
9
|
const appium_1 = require("appium");
|
|
@@ -23,6 +23,10 @@ function pluginE2EHarness(opts) {
|
|
|
23
23
|
*/
|
|
24
24
|
let server;
|
|
25
25
|
before(async function () {
|
|
26
|
+
const chai = await import('chai');
|
|
27
|
+
const chaiAsPromised = await import('chai-as-promised');
|
|
28
|
+
chai.use(chaiAsPromised.default);
|
|
29
|
+
chai.should();
|
|
26
30
|
const setupAppiumHome = async () => {
|
|
27
31
|
/**
|
|
28
32
|
* @type {AppiumEnv}
|
|
@@ -112,7 +116,6 @@ function pluginE2EHarness(opts) {
|
|
|
112
116
|
}
|
|
113
117
|
});
|
|
114
118
|
}
|
|
115
|
-
exports.pluginE2EHarness = pluginE2EHarness;
|
|
116
119
|
/**
|
|
117
120
|
* @typedef E2ESetupOpts
|
|
118
121
|
* @property {string} [appiumHome] - Path to Appium home directory
|
package/build/lib/harness.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harness.js","sourceRoot":"","sources":["../../lib/harness.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"harness.js","sourceRoot":"","sources":["../../lib/harness.js"],"names":[],"mappings":";;;;;AAcA,4CA+HC;AA7ID,+BAA+B;AAC/B,4CAAkC;AAClC,mCAA4C;AAC5C,wDAA+B;AAC/B,6CAAmD;AACnD,+CAAkC;AAElC,MAAM,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;AAE7C;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,IAAI;IACnC,IAAI,EACF,UAAU,EACV,MAAM,EACN,KAAK,EACL,UAAU,GAAG,EAAE,EACf,YAAY,EACZ,aAAa,EACb,UAAU,EACV,UAAU,EACV,YAAY,EACZ,a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;QAClE,CAAC,CAAC;QAEF,MAAM,GAAG,GAAG,MAAM,eAAe,EAAE,CAAC;QACpC,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC;QACzB,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC;QACzB,MAAM,YAAY,EAAE,CAAC;IACvB,CAAC,CAAC,CAAC;IAEH,KAAK,CAAC,KAAK;QACT,IAAI,MAAM,EAAE,CAAC;YACX,MAAM,MAAM,CAAC,KAAK,EAAE,CAAC;QACvB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AAEH;;GAEG;AAEH;;GAEG"}
|
package/lib/harness.js
CHANGED
|
@@ -36,6 +36,11 @@ export function pluginE2EHarness(opts) {
|
|
|
36
36
|
let server;
|
|
37
37
|
|
|
38
38
|
before(async function () {
|
|
39
|
+
const chai = await import('chai');
|
|
40
|
+
const chaiAsPromised = await import('chai-as-promised');
|
|
41
|
+
chai.use(chaiAsPromised.default);
|
|
42
|
+
chai.should();
|
|
43
|
+
|
|
39
44
|
const setupAppiumHome = async () => {
|
|
40
45
|
/**
|
|
41
46
|
* @type {AppiumEnv}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/plugin-test-support",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.40",
|
|
4
4
|
"description": "Testing utilities for Appium plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"test:unit": "exit 0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@appium/types": "^0.
|
|
44
|
+
"@appium/types": "^0.21.1",
|
|
45
45
|
"get-port": "5.1.1",
|
|
46
46
|
"log-symbols": "4.1.0",
|
|
47
47
|
"source-map-support": "0.5.21",
|
|
48
|
-
"teen_process": "2.
|
|
48
|
+
"teen_process": "2.2.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"appium": "^2.0.0-beta.43",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "74292e229269120a58cc716ed1d8d56c8ff9c079"
|
|
62
62
|
}
|
package/tsconfig.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@appium/types": ["../types"],
|
|
9
9
|
"appium/support": ["../appium/support"]
|
|
10
10
|
},
|
|
11
|
-
"types": ["mocha", "chai", "sinon", "
|
|
11
|
+
"types": ["mocha", "chai", "sinon", "chai-as-promised"]
|
|
12
12
|
},
|
|
13
13
|
"include": ["./lib"],
|
|
14
14
|
"references": [{"path": "../types"}, {"path": "../support"}]
|