@midscene/cli 1.9.5-beta-20260611051901.0 → 1.9.5
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/dist/es/framework/index.mjs +22 -54
- package/dist/es/framework/index.mjs.map +1 -1
- package/dist/es/index.mjs +19 -37
- package/dist/es/index.mjs.map +1 -1
- package/dist/lib/framework/index.js +21 -53
- package/dist/lib/framework/index.js.map +1 -1
- package/dist/lib/index.js +16 -34
- package/dist/lib/index.js.map +1 -1
- package/dist/types/framework/index.d.ts +2 -18
- package/package.json +8 -8
|
@@ -5,7 +5,6 @@ import type { MidsceneYamlScriptEnv } from '@midscene/core';
|
|
|
5
5
|
import type { MidsceneYamlScriptIOSEnv } from '@midscene/core';
|
|
6
6
|
import type { MidsceneYamlScriptWebEnv } from '@midscene/core';
|
|
7
7
|
import { ScriptPlayer } from '@midscene/core/yaml';
|
|
8
|
-
import type { test } from '@rstest/core';
|
|
9
8
|
|
|
10
9
|
declare interface BatchRunnerConfig {
|
|
11
10
|
files: string[];
|
|
@@ -46,20 +45,13 @@ export declare interface CreateRstestYamlProjectOptions {
|
|
|
46
45
|
bail?: number;
|
|
47
46
|
retry?: number;
|
|
48
47
|
batchConfig?: BatchRunnerConfig;
|
|
49
|
-
rstestCoreImport?: string;
|
|
50
48
|
}
|
|
51
49
|
|
|
52
50
|
export declare const createYamlCaseFailure: (result: MidsceneYamlConfigResult) => Error;
|
|
53
51
|
|
|
54
52
|
export declare const createYamlCaseResult: (file: string, player: ScriptPlayer<MidsceneYamlScriptEnv>, duration: number) => MidsceneYamlConfigResult;
|
|
55
53
|
|
|
56
|
-
export declare function defineYamlBatchTest(
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @deprecated Prefer passing Rstest's `test` API explicitly so test registration
|
|
60
|
-
* stays synchronous. This overload is kept for custom framework compatibility.
|
|
61
|
-
*/
|
|
62
|
-
export declare function defineYamlBatchTest(options: DefineYamlBatchTestOptions): Promise<void>;
|
|
54
|
+
export declare function defineYamlBatchTest(options: DefineYamlBatchTestOptions): void;
|
|
63
55
|
|
|
64
56
|
export declare interface DefineYamlBatchTestOptions {
|
|
65
57
|
testName: string;
|
|
@@ -67,13 +59,7 @@ export declare interface DefineYamlBatchTestOptions {
|
|
|
67
59
|
resultFiles: Record<string, string>;
|
|
68
60
|
}
|
|
69
61
|
|
|
70
|
-
export declare function defineYamlCaseTest(
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* @deprecated Prefer passing Rstest's `test` API explicitly so test registration
|
|
74
|
-
* stays synchronous. This overload is kept for custom framework compatibility.
|
|
75
|
-
*/
|
|
76
|
-
export declare function defineYamlCaseTest(options: DefineYamlCaseTestOptions): Promise<void>;
|
|
62
|
+
export declare function defineYamlCaseTest(options: DefineYamlCaseTestOptions): void;
|
|
77
63
|
|
|
78
64
|
export declare interface DefineYamlCaseTestOptions {
|
|
79
65
|
testName: string;
|
|
@@ -125,8 +111,6 @@ export declare function resolveRstestCoreImportPath(): string;
|
|
|
125
111
|
|
|
126
112
|
export declare const resolveTestName: (projectDir: string, yamlFile: string) => string;
|
|
127
113
|
|
|
128
|
-
declare type RstestTest = typeof test;
|
|
129
|
-
|
|
130
114
|
export declare type RstestYamlCaseOptions = Omit<RunYamlCaseOptions, 'file' | 'headed' | 'keepWindow'>;
|
|
131
115
|
|
|
132
116
|
export declare function runFrameworkTestConfig(config: BatchRunnerConfig, commandOptions?: FrameworkTestCommandOptions): Promise<number>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/cli",
|
|
3
3
|
"description": "An AI-powered automation SDK can control the page, perform assertions, and extract data in JSON format using natural language. See https://midscenejs.com/ for details.",
|
|
4
|
-
"version": "1.9.5
|
|
4
|
+
"version": "1.9.5",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"main": "./dist/lib/index.js",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"http-server": "14.1.1",
|
|
20
20
|
"lodash.merge": "4.6.2",
|
|
21
21
|
"puppeteer": "24.6.0",
|
|
22
|
-
"@midscene/android": "1.9.5
|
|
23
|
-
"@midscene/
|
|
24
|
-
"@midscene/
|
|
25
|
-
"@midscene/
|
|
26
|
-
"@midscene/
|
|
27
|
-
"@midscene/web": "1.9.5
|
|
28
|
-
"@midscene/ios": "1.9.5
|
|
22
|
+
"@midscene/android": "1.9.5",
|
|
23
|
+
"@midscene/computer": "1.9.5",
|
|
24
|
+
"@midscene/harmony": "1.9.5",
|
|
25
|
+
"@midscene/shared": "1.9.5",
|
|
26
|
+
"@midscene/core": "1.9.5",
|
|
27
|
+
"@midscene/web": "1.9.5",
|
|
28
|
+
"@midscene/ios": "1.9.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@rslib/core": "^0.18.3",
|