@wdio/cli 9.0.0-alpha.9 → 9.0.0
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/commands/config.d.ts.map +1 -1
- package/build/commands/repl.d.ts.map +1 -1
- package/build/commands/run.d.ts +14 -13
- package/build/commands/run.d.ts.map +1 -1
- package/build/constants.d.ts +83 -10
- package/build/constants.d.ts.map +1 -1
- package/build/index.cjs +46 -0
- package/build/index.d.cts +2 -0
- package/build/index.d.cts.map +1 -0
- package/build/index.js +3233 -4
- package/build/interface.d.ts +0 -1
- package/build/interface.d.ts.map +1 -1
- package/build/launcher.d.ts.map +1 -1
- package/build/run.d.ts.map +1 -1
- package/build/types.d.ts +3 -4
- package/build/types.d.ts.map +1 -1
- package/build/utils.d.ts +7 -11
- package/build/utils.d.ts.map +1 -1
- package/build/watcher.d.ts.map +1 -1
- package/package.json +20 -25
- package/build/cjs/index.d.ts +0 -2
- package/build/cjs/index.d.ts.map +0 -1
- package/build/cjs/index.js +0 -26
- package/build/cjs/package.json +0 -5
- package/build/commands/config.js +0 -197
- package/build/commands/index.js +0 -5
- package/build/commands/install.js +0 -109
- package/build/commands/repl.js +0 -50
- package/build/commands/run.js +0 -262
- package/build/constants.js +0 -909
- package/build/install.js +0 -38
- package/build/interface.js +0 -285
- package/build/launcher.js +0 -513
- package/build/run.js +0 -75
- package/build/templates/EjsHelpers.js +0 -59
- package/build/templates/EjsHelpers.ts +0 -84
- package/build/templates/exampleFiles/browser/Component.css.ejs +0 -121
- package/build/templates/exampleFiles/browser/Component.lit.ejs +0 -154
- package/build/templates/exampleFiles/browser/Component.lit.test.ejs +0 -24
- package/build/templates/exampleFiles/browser/Component.preact.ejs +0 -28
- package/build/templates/exampleFiles/browser/Component.preact.test.ejs +0 -59
- package/build/templates/exampleFiles/browser/Component.react.ejs +0 -29
- package/build/templates/exampleFiles/browser/Component.react.test.ejs +0 -58
- package/build/templates/exampleFiles/browser/Component.solid.ejs +0 -28
- package/build/templates/exampleFiles/browser/Component.solid.test.ejs +0 -58
- package/build/templates/exampleFiles/browser/Component.stencil.ejs +0 -43
- package/build/templates/exampleFiles/browser/Component.stencil.test.ejs +0 -45
- package/build/templates/exampleFiles/browser/Component.svelte.ejs +0 -47
- package/build/templates/exampleFiles/browser/Component.svelte.test.ejs +0 -58
- package/build/templates/exampleFiles/browser/Component.vue.ejs +0 -34
- package/build/templates/exampleFiles/browser/Component.vue.test.ejs +0 -62
- package/build/templates/exampleFiles/browser/standalone.test.ejs +0 -13
- package/build/templates/exampleFiles/cucumber/features/login.feature +0 -12
- package/build/templates/exampleFiles/cucumber/step_definitions/steps.js.ejs +0 -55
- package/build/templates/exampleFiles/mochaJasmine/test.e2e.js.ejs +0 -11
- package/build/templates/exampleFiles/pageobjects/login.page.js.ejs +0 -45
- package/build/templates/exampleFiles/pageobjects/page.js.ejs +0 -17
- package/build/templates/exampleFiles/pageobjects/secure.page.js.ejs +0 -20
- package/build/templates/exampleFiles/serenity-js/common/config/serenity.properties.ejs +0 -1
- package/build/templates/exampleFiles/serenity-js/common/serenity/github-api/GitHubStatus.ts.ejs +0 -41
- package/build/templates/exampleFiles/serenity-js/common/serenity/todo-list-app/TodoList.ts.ejs +0 -100
- package/build/templates/exampleFiles/serenity-js/common/serenity/todo-list-app/TodoListItem.ts.ejs +0 -36
- package/build/templates/exampleFiles/serenity-js/cucumber/step-definitions/steps.ts.ejs +0 -37
- package/build/templates/exampleFiles/serenity-js/cucumber/support/parameter.config.ts.ejs +0 -18
- package/build/templates/exampleFiles/serenity-js/cucumber/todo-list/completing_items.feature.ejs +0 -23
- package/build/templates/exampleFiles/serenity-js/cucumber/todo-list/narrative.md.ejs +0 -17
- package/build/templates/exampleFiles/serenity-js/jasmine/example.spec.ts.ejs +0 -86
- package/build/templates/exampleFiles/serenity-js/mocha/example.spec.ts.ejs +0 -88
- package/build/templates/snippets/afterTest.ejs +0 -20
- package/build/templates/snippets/capabilities.ejs +0 -57
- package/build/templates/snippets/cucumber.ejs +0 -50
- package/build/templates/snippets/electronTest.js.ejs +0 -7
- package/build/templates/snippets/jasmine.ejs +0 -20
- package/build/templates/snippets/macosTest.js.ejs +0 -11
- package/build/templates/snippets/mocha.ejs +0 -14
- package/build/templates/snippets/reporters.ejs +0 -14
- package/build/templates/snippets/serenity.ejs +0 -18
- package/build/templates/snippets/services.ejs +0 -18
- package/build/templates/snippets/testWithPO.js.ejs +0 -22
- package/build/templates/snippets/testWithoutPO.js.ejs +0 -19
- package/build/templates/snippets/vscodeTest.js.ejs +0 -9
- package/build/templates/wdio.conf.tpl.ejs +0 -422
- package/build/types.js +0 -1
- package/build/utils.js +0 -930
- package/build/watcher.js +0 -156
- /package/{LICENSE-MIT → LICENSE} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAWjC,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAUxE,eAAO,MAAM,OAAO,WAAW,CAAA;AAC/B,eAAO,MAAM,IAAI,4EAA4E,CAAA;AAE7F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;CAkBV,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;GAKlC,CAAA;AAED,eAAO,MAAM,YAAY,QAAwB,OAAO,KAAG,OAAO,CAAC,aAAa,CAyF/E,CAAA;AAED,wBAAsB,gBAAgB,CAAC,aAAa,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,iBAqBlF;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,sBAAsB,EAAE,YAAY,0BAAmB;;;;GAQ1F;AAED;;;;GAIG;AACH,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM;;;GAMzD;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,UAAU,EAAE,MAAM,+BAQ3D;AAED;;;;;;GAMG;AACH,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,0BAAmB,8BA4BpH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../src/commands/repl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../src/commands/repl.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAK1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAOvD,eAAO,MAAM,OAAO,iCAAiC,CAAA;AACrD,eAAO,MAAM,IAAI,0CAA0C,CAAA;AAC3D,eAAO,MAAM,OAAO,EAAE;KAAG,CAAC,IAAI,MAAM,oBAAoB,CAAC,CAAC,EAAE,OAAO;CAgBzD,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI,KAWhB,OAClB,CAAA;AAED,eAAO,MAAM,OAAO,SAAgB,oBAAoB,kBAUvD,CAAA"}
|
package/build/commands/run.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export declare const cmdArgs: {
|
|
|
84
84
|
readonly mochaOpts: {
|
|
85
85
|
readonly desc: "Mocha options";
|
|
86
86
|
readonly coerce: (opts: {
|
|
87
|
-
[x: string]:
|
|
87
|
+
[x: string]: boolean | string | number;
|
|
88
88
|
}) => {
|
|
89
89
|
[x: string]: string | number | boolean;
|
|
90
90
|
};
|
|
@@ -92,7 +92,7 @@ export declare const cmdArgs: {
|
|
|
92
92
|
readonly jasmineOpts: {
|
|
93
93
|
readonly desc: "Jasmine options";
|
|
94
94
|
readonly coerce: (opts: {
|
|
95
|
-
[x: string]:
|
|
95
|
+
[x: string]: boolean | string | number;
|
|
96
96
|
}) => {
|
|
97
97
|
[x: string]: string | number | boolean;
|
|
98
98
|
};
|
|
@@ -100,14 +100,11 @@ export declare const cmdArgs: {
|
|
|
100
100
|
readonly cucumberOpts: {
|
|
101
101
|
readonly desc: "Cucumber options";
|
|
102
102
|
readonly coerce: (opts: {
|
|
103
|
-
[x: string]:
|
|
103
|
+
[x: string]: boolean | string | number;
|
|
104
104
|
}) => {
|
|
105
105
|
[x: string]: string | number | boolean;
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
|
-
readonly autoCompileOpts: {
|
|
109
|
-
readonly desc: "Auto compilation options";
|
|
110
|
-
};
|
|
111
108
|
readonly coverage: {
|
|
112
109
|
readonly desc: "Enable coverage for browser runner";
|
|
113
110
|
};
|
|
@@ -119,7 +116,7 @@ export declare const cmdArgs: {
|
|
|
119
116
|
};
|
|
120
117
|
};
|
|
121
118
|
};
|
|
122
|
-
export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "framework" | "reporters" | "hostname" | "port" | "path" | "updateSnapshots" | "
|
|
119
|
+
export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "framework" | "reporters" | "hostname" | "port" | "path" | "updateSnapshots" | "user" | "key" | "spec" | "exclude" | "bail" | "watch" | "shard" | "mochaOpts" | "jasmineOpts" | "cucumberOpts" | "baseUrl" | "waitforTimeout" | "logLevel" | "coverage" | "suite" | "repeat"> & import("yargs").InferredOptionTypes<{
|
|
123
120
|
readonly watch: {
|
|
124
121
|
readonly desc: "Run WebdriverIO in watch mode";
|
|
125
122
|
readonly type: "boolean";
|
|
@@ -201,7 +198,7 @@ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "fr
|
|
|
201
198
|
readonly mochaOpts: {
|
|
202
199
|
readonly desc: "Mocha options";
|
|
203
200
|
readonly coerce: (opts: {
|
|
204
|
-
[x: string]:
|
|
201
|
+
[x: string]: boolean | string | number;
|
|
205
202
|
}) => {
|
|
206
203
|
[x: string]: string | number | boolean;
|
|
207
204
|
};
|
|
@@ -209,7 +206,7 @@ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "fr
|
|
|
209
206
|
readonly jasmineOpts: {
|
|
210
207
|
readonly desc: "Jasmine options";
|
|
211
208
|
readonly coerce: (opts: {
|
|
212
|
-
[x: string]:
|
|
209
|
+
[x: string]: boolean | string | number;
|
|
213
210
|
}) => {
|
|
214
211
|
[x: string]: string | number | boolean;
|
|
215
212
|
};
|
|
@@ -217,14 +214,11 @@ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "fr
|
|
|
217
214
|
readonly cucumberOpts: {
|
|
218
215
|
readonly desc: "Cucumber options";
|
|
219
216
|
readonly coerce: (opts: {
|
|
220
|
-
[x: string]:
|
|
217
|
+
[x: string]: boolean | string | number;
|
|
221
218
|
}) => {
|
|
222
219
|
[x: string]: string | number | boolean;
|
|
223
220
|
};
|
|
224
221
|
};
|
|
225
|
-
readonly autoCompileOpts: {
|
|
226
|
-
readonly desc: "Auto compilation options";
|
|
227
|
-
};
|
|
228
222
|
readonly coverage: {
|
|
229
223
|
readonly desc: "Enable coverage for browser runner";
|
|
230
224
|
};
|
|
@@ -238,5 +232,12 @@ export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "fr
|
|
|
238
232
|
}>>;
|
|
239
233
|
export declare function launchWithStdin(wdioConfPath: string, params: Partial<RunCommandArguments>): void;
|
|
240
234
|
export declare function launch(wdioConfPath: string, params: Partial<RunCommandArguments>): Promise<void>;
|
|
235
|
+
declare enum NodeVersion {
|
|
236
|
+
'major' = 0,
|
|
237
|
+
'minor' = 1,
|
|
238
|
+
'patch' = 2
|
|
239
|
+
}
|
|
240
|
+
export declare function nodeVersion(type: keyof typeof NodeVersion): number;
|
|
241
241
|
export declare function handler(argv: RunCommandArguments): Promise<false | void>;
|
|
242
|
+
export {};
|
|
242
243
|
//# sourceMappingURL=run.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAa1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAmDI,MAAM
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAa1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAmDI,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA9DJ;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;SAAE;;;;;;gCAA1C;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;SAAE;;;;;;gCAA1C;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;SAAE;;;;;;;;;iCAgH5C,MAAM;;;;;CAQpB,CAAA;AAEV,eAAO,MAAM,OAAO,UAAW,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA5DX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCA9DJ;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;SAAE;;;;;;gCAA1C;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;SAAE;;;;;;gCAA1C;YAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAA;SAAE;;;;;;;;;iCAgH5C,MAAM;;;;;GAoB7B,CAAA;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAezF;AAED,wBAAsB,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,iBAgBtF;AAED,aAAK,WAAW;IACZ,OAAO,IAAI;IACX,OAAO,IAAI;IACX,OAAO,IAAI;CACd;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,OAAO,WAAW,GAAG,MAAM,CAElE;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,mBAAmB,yBAsFtD"}
|
package/build/constants.d.ts
CHANGED
|
@@ -1,8 +1,84 @@
|
|
|
1
1
|
import type { Options } from '@wdio/types';
|
|
2
2
|
import type { Questionnair } from './types.js';
|
|
3
|
-
export declare const pkg:
|
|
3
|
+
export declare const pkg: {
|
|
4
|
+
name: string;
|
|
5
|
+
version: string;
|
|
6
|
+
description: string;
|
|
7
|
+
author: string;
|
|
8
|
+
homepage: string;
|
|
9
|
+
license: string;
|
|
10
|
+
bin: {
|
|
11
|
+
wdio: string;
|
|
12
|
+
};
|
|
13
|
+
engines: {
|
|
14
|
+
node: string;
|
|
15
|
+
};
|
|
16
|
+
repository: {
|
|
17
|
+
type: string;
|
|
18
|
+
url: string;
|
|
19
|
+
directory: string;
|
|
20
|
+
};
|
|
21
|
+
keywords: string[];
|
|
22
|
+
bugs: {
|
|
23
|
+
url: string;
|
|
24
|
+
};
|
|
25
|
+
main: string;
|
|
26
|
+
type: string;
|
|
27
|
+
module: string;
|
|
28
|
+
types: string;
|
|
29
|
+
exports: {
|
|
30
|
+
".": {
|
|
31
|
+
types: string;
|
|
32
|
+
import: string;
|
|
33
|
+
requireSource: string;
|
|
34
|
+
require: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
typeScriptVersion: string;
|
|
38
|
+
dependencies: {
|
|
39
|
+
"@types/node": string;
|
|
40
|
+
"@vitest/snapshot": string;
|
|
41
|
+
"@wdio/config": string;
|
|
42
|
+
"@wdio/globals": string;
|
|
43
|
+
"@wdio/logger": string;
|
|
44
|
+
"@wdio/protocols": string;
|
|
45
|
+
"@wdio/types": string;
|
|
46
|
+
"@wdio/utils": string;
|
|
47
|
+
"async-exit-hook": string;
|
|
48
|
+
chalk: string;
|
|
49
|
+
chokidar: string;
|
|
50
|
+
"cli-spinners": string;
|
|
51
|
+
dotenv: string;
|
|
52
|
+
ejs: string;
|
|
53
|
+
execa: string;
|
|
54
|
+
"import-meta-resolve": string;
|
|
55
|
+
inquirer: string;
|
|
56
|
+
"lodash.flattendeep": string;
|
|
57
|
+
"lodash.pickby": string;
|
|
58
|
+
"lodash.union": string;
|
|
59
|
+
"read-pkg-up": string;
|
|
60
|
+
"recursive-readdir": string;
|
|
61
|
+
tsx: string;
|
|
62
|
+
webdriverio: string;
|
|
63
|
+
yargs: string;
|
|
64
|
+
};
|
|
65
|
+
devDependencies: {
|
|
66
|
+
"@types/async-exit-hook": string;
|
|
67
|
+
"@types/ejs": string;
|
|
68
|
+
"@types/inquirer": string;
|
|
69
|
+
"@types/lodash.flattendeep": string;
|
|
70
|
+
"@types/lodash.pickby": string;
|
|
71
|
+
"@types/lodash.union": string;
|
|
72
|
+
"@types/recursive-readdir": string;
|
|
73
|
+
"@types/yargs": string;
|
|
74
|
+
};
|
|
75
|
+
publishConfig: {
|
|
76
|
+
access: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
4
79
|
export declare const CLI_EPILOGUE: string;
|
|
5
80
|
export declare const CONFIG_HELPER_INTRO = "\n===============================\n\uD83E\uDD16 WDIO Configuration Wizard \uD83E\uDDD9\n===============================\n";
|
|
81
|
+
export declare const SUPPORTED_COMMANDS: string[];
|
|
6
82
|
export declare const PMs: readonly ["npm", "yarn", "pnpm", "bun"];
|
|
7
83
|
export declare const SUPPORTED_CONFIG_FILE_EXTENSION: string[];
|
|
8
84
|
export declare const configHelperSuccessMessage: ({ projectRootDir, runScript, extraInfo }: {
|
|
@@ -23,11 +99,6 @@ export declare const IOS_CONFIG: {
|
|
|
23
99
|
automationName: string;
|
|
24
100
|
deviceName: string;
|
|
25
101
|
};
|
|
26
|
-
export declare enum CompilerOptions {
|
|
27
|
-
Babel = "Babel (https://babeljs.io/)",
|
|
28
|
-
TS = "TypeScript (https://www.typescriptlang.org/)",
|
|
29
|
-
Nil = "No!"
|
|
30
|
-
}
|
|
31
102
|
/**
|
|
32
103
|
* We have to use a string hash for value because InquirerJS default values do not work if we have
|
|
33
104
|
* objects as a `value` to be stored from the user's answers.
|
|
@@ -212,9 +283,9 @@ export declare const QUESTIONNAIRE: ({
|
|
|
212
283
|
type: string;
|
|
213
284
|
name: string;
|
|
214
285
|
message: string;
|
|
215
|
-
|
|
216
|
-
default: (answers: Questionnair) => Promise<
|
|
217
|
-
|
|
286
|
+
when: (answers: Questionnair) => boolean;
|
|
287
|
+
default: (answers: Questionnair) => true | Promise<boolean>;
|
|
288
|
+
choices?: undefined;
|
|
218
289
|
} | {
|
|
219
290
|
type: string;
|
|
220
291
|
name: string;
|
|
@@ -258,7 +329,9 @@ export declare const QUESTIONNAIRE: ({
|
|
|
258
329
|
when?: undefined;
|
|
259
330
|
})[];
|
|
260
331
|
export declare const COMMUNITY_PACKAGES_WITH_TS_SUPPORT: string[];
|
|
261
|
-
export declare const TESTRUNNER_DEFAULTS: Options.Definition<Options.Testrunner
|
|
332
|
+
export declare const TESTRUNNER_DEFAULTS: Options.Definition<Options.Testrunner & {
|
|
333
|
+
capabilities: unknown;
|
|
334
|
+
}>;
|
|
262
335
|
export declare const WORKER_GROUPLOGS_MESSAGES: {
|
|
263
336
|
normalExit: (cid: string) => string;
|
|
264
337
|
exitWithError: (cid: string) => string;
|
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAuB,MAAM,aAAa,CAAA;AAS/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAG9C,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAU,CAAA;AAC1B,eAAO,MAAM,YAAY,QAAqE,CAAA;AAE9F,eAAO,MAAM,mBAAmB,8HAI/B,CAAA;AAED,eAAO,MAAM,kBAAkB,UAAuC,CAAA;AACtE,eAAO,MAAM,GAAG,yCAA0C,CAAA;AAC1D,eAAO,MAAM,+BAA+B,UAA2C,CAAA;AACvF,eAAO,MAAM,0BAA0B,6CAAmD;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,WAYzJ,CAAA;AAED,eAAO,MAAM,6BAA6B,8EAGzC,CAAA;AAED,eAAO,MAAM,iCAAiC,8CAG7C,CAAA;AAED,eAAO,MAAM,WAAW,KAAK,CAAA;AAE7B,eAAO,MAAM,cAAc;;;;CAI1B,CAAA;AAED,eAAO,MAAM,UAAU;;;;CAItB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;CAqF9B,CAAA;AAED,eAAO,MAAM,gCAAgC;;;;;;IAS5C,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAM3D,CAAA;AAED,oBAAY,aAAa;IACrB,KAAK,wBAAwB;IAC7B,UAAU,kCAAkC;IAC5C,SAAS,kCAAkC;IAC3C,YAAY,oCAAoC;IAChD,YAAY,uEAAuE;IACnF,IAAI,iCAAiC;CACxC;AAED,oBAAY,uBAAuB;IAC/B,aAAa,mDAAmD;IAChE,eAAe,mDAAmD;IAClE,aAAa,mBAAmB;CACnC;AAED,aAAK,eAAe;IAChB,KAAK,UAAU;IACf,IAAI,SAAS;CAChB;AAED,oBAAY,aAAa;IACrB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,IAAI,SAAS;CAChB;AAED,eAAO,MAAM,gBAAgB;;;GAG5B,CAAA;AAED,eAAO,MAAM,mBAAmB;;;GAG/B,CAAA;AAED,eAAO,MAAM,oBAAoB;;;GAKhC,CAAA;AAED,iBAAS,eAAe,CAAE,OAAO,EAAE,YAAY,WAE9C;AAED,wBAAgB,YAAY,CAAE,OAAO,EAAE,YAAY,WAElD;AAMD,eAAO,MAAM,aAAa,SAYV,CAAA;AAqBhB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkBqB,YAAY;;;;;;;oBAYX,YAAY;;;;;;;oBAWZ,YAAY;;;;;;;;;;;oBAOb,YAAY;;;;;;;;;;oBAgBX,YAAY;;;;;oBAQb,YAAY;;;;;;;;oBAMZ,YAAY;;;;;;;;oBAyBZ,YAAY;;;;;;oBAoDZ,YAAY;;;;;;;oBASZ,YAAY;;;;;;uBA0BR,YAAY;;;;;;;;;;oBAsBhB,YAAY;uBAST,YAAY;;;;;;uBAmBZ,YAAY;oBAIf,YAAY;;;;;;uBAuCT,YAAY;oBAKf,YAAY;;;;;;;;;;;;;;;;uBA0CpC,YAAY;;;;uBAuBZ,YAAY;;;;;;;;;IA8CjC,CAAA;AAGF,eAAO,MAAM,kCAAkC,UAM9C,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,CA+SlG,CAAA;AAED,eAAO,MAAM,yBAAyB;sBAChB,MAAM;yBACH,MAAM;CAC9B,CAAA"}
|
package/build/index.cjs
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const __importMetaUrl = require('url').pathToFileURL(__filename).href;
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
19
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
20
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
21
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
22
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
|
+
mod
|
|
24
|
+
));
|
|
25
|
+
|
|
26
|
+
// src/index.cts
|
|
27
|
+
var Launcher = class {
|
|
28
|
+
#esmLauncher;
|
|
29
|
+
constructor(configFilePath, args = {}, isWatchMode = false) {
|
|
30
|
+
this.#esmLauncher = import("./index.js").then(
|
|
31
|
+
({ Launcher: Launcher2 }) => new Launcher2(configFilePath, args, isWatchMode)
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* run sequence
|
|
36
|
+
* @return {Promise} that only gets resolved with either an exitCode or an error
|
|
37
|
+
*/
|
|
38
|
+
async run() {
|
|
39
|
+
return (await this.#esmLauncher).run();
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
async function run() {
|
|
43
|
+
const { run: run2 } = await import("./index.js");
|
|
44
|
+
return run2();
|
|
45
|
+
}
|
|
46
|
+
module.exports = { Launcher, run };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":""}
|