@unotest/web 0.30.0 → 0.31.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/.claude/skills/write-e2e-test/SKILL.md +12 -0
- package/.claude/skills/write-e2e-test-ground/SKILL.md +12 -0
- package/CHANGELOG.md +266 -0
- package/bin/unotest-web.js +3 -1
- package/dist/config/schema.d.ts +9 -9
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +11 -3
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +34 -4
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.d.ts +22 -2
- package/dist/dsl/web-dsl-language-service.js +1 -1
- package/dist/inspection/page-inject.d.ts +1 -1
- package/dist/{interfaces-BluheUKs.d.ts → interfaces-B34N4rfI.d.ts} +8 -0
- package/dist/legacy-layout-By62PkbP.d.ts +8 -0
- package/dist/linter-Yf4gPe5J.d.ts +36 -0
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.d.ts +13 -2
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.js +1 -1
- package/dist/runner/init.js +1 -1
- package/dist/runner/install-chromium.js +1 -1
- package/dist/runner/prepare-fix.js +1 -1
- package/dist/runner/scaffold-workspace.js +1 -1
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/agent-integration.md +43 -2
- package/guides/dsl-reference.md +156 -9
- package/package.json +8 -8
- package/src/mcp/prompts/agent-test-author.md +11 -1
- package/types/unotest-dsl.d.ts +29 -5
- package/dist/linter-CM2CpIyW.d.ts +0 -21
package/dist/runner/cli.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { L as
|
|
1
|
+
import { L as LegacyLayout } from '../legacy-layout-By62PkbP.js';
|
|
2
|
+
import { L as LintDiagnostic } from '../linter-Yf4gPe5J.js';
|
|
2
3
|
import '@unotest/dsl';
|
|
3
4
|
|
|
4
5
|
/** Derive a viewer-compatible scenario name from an absolute scenario
|
|
@@ -24,6 +25,16 @@ declare function scenarioNotFoundMessage(arg: string, scenarioPath: string, cwd:
|
|
|
24
25
|
* scenarios. Returns null for files in a subfolder or outside `unotest/e2e/`.
|
|
25
26
|
* Exported only for tests. */
|
|
26
27
|
declare function scenarioInRootDiagnostic(file: string, cwd: string): LintDiagnostic | null;
|
|
28
|
+
/** Report a project still on the pre-0.28 layout (`lint:legacy-layout`).
|
|
29
|
+
* A warning, not the loader's refusal: `lint` needs the config only for
|
|
30
|
+
* rule severity and the helpers dir, so it ran on the defaults — and says
|
|
31
|
+
* so, because a suite nobody can lint until it is migrated is a suite
|
|
32
|
+
* nobody lints during the migration. Anchored at the config nobody reads.
|
|
33
|
+
* Exported only for tests. */
|
|
34
|
+
declare function legacyLayoutDiagnostic(layout: LegacyLayout): {
|
|
35
|
+
file: string;
|
|
36
|
+
diagnostic: LintDiagnostic;
|
|
37
|
+
};
|
|
27
38
|
/** Pull a global `--env <name>` / `--env=<name>` flag out of argv and set
|
|
28
39
|
* `UNOTEST_ENV`, so the `.env.<name>` / `.secrets.<name>` overlays activate
|
|
29
40
|
* for whichever subcommand runs (e2e / lint / viewer). Order-insensitive;
|
|
@@ -39,4 +50,4 @@ declare function applyEnvFlag(args: string[]): string[];
|
|
|
39
50
|
declare function commandArgs(rawArgs: string[]): string[];
|
|
40
51
|
declare function main(argv: string[]): void;
|
|
41
52
|
|
|
42
|
-
export { applyEnvFlag, commandArgs, extraPositionalsError, main, scenarioInRootDiagnostic, scenarioNameFromPath, scenarioNotFoundMessage };
|
|
53
|
+
export { applyEnvFlag, commandArgs, extraPositionalsError, legacyLayoutDiagnostic, main, scenarioInRootDiagnostic, scenarioNameFromPath, scenarioNotFoundMessage };
|