@unotest/web 0.6.2 → 0.9.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 +16 -16
- package/CHANGELOG.md +28 -0
- package/README.md +12 -12
- package/dist/config/schema.js +1 -1
- package/dist/driver/index.d.ts +7 -2
- package/dist/driver/index.js +1 -1
- package/dist/dsl/index.d.ts +15 -3
- package/dist/dsl/index.js +1 -1
- package/dist/dsl/web-dsl-language-service.d.ts +18 -0
- package/dist/dsl/web-dsl-language-service.js +1 -0
- package/dist/inspection/page-inject.d.ts +45 -1
- package/dist/inspection/page-inject.js +253 -4
- package/dist/{interfaces-iTfjd1zT.d.ts → interfaces-dbZG10RS.d.ts} +40 -1
- package/dist/{linter-DzAzJpab.d.ts → linter-CM2CpIyW.d.ts} +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/runner/cli.d.ts +8 -2
- package/dist/runner/cli.js +1 -1
- package/dist/runner/init/chrome-probe.d.ts +15 -0
- package/dist/runner/init/chrome-probe.js +1 -0
- 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.d.ts +24 -0
- package/dist/runner/scaffold-workspace.js +1 -0
- package/dist/runner/serve-fixture.js +1 -1
- package/dist/runner/web-runner-adapter.d.ts +1 -1
- package/dist/runner/web-runner-adapter.js +1 -1
- package/guides/dsl-reference.md +7 -7
- package/package.json +20 -4
- package/src/mcp/prompts/agent-test-author.md +1 -1
package/dist/runner/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as LintDiagnostic } from '../linter-
|
|
1
|
+
import { L as LintDiagnostic } from '../linter-CM2CpIyW.js';
|
|
2
2
|
import '@unotest/dsl';
|
|
3
3
|
|
|
4
4
|
/** Parse `e2e` flag arguments. Strips known flags, returns positional
|
|
@@ -26,6 +26,12 @@ declare function scenarioNameFromPath(scenarioPath: string, cwd: string): string
|
|
|
26
26
|
* scenarios. Returns null for files in a subfolder or outside `unotest/e2e/`.
|
|
27
27
|
* Exported only for tests. */
|
|
28
28
|
declare function scenarioInRootDiagnostic(file: string, cwd: string): LintDiagnostic | null;
|
|
29
|
+
/** Pull a global `--env <name>` / `--env=<name>` flag out of argv and set
|
|
30
|
+
* `UNOTEST_ENV`, so the `.env.<name>` / `.secrets.<name>` overlays activate
|
|
31
|
+
* for whichever subcommand runs (e2e / lint / viewer). Order-insensitive;
|
|
32
|
+
* returns argv with the flag removed. An explicit shell `UNOTEST_ENV` is left
|
|
33
|
+
* untouched when `--env` is absent. */
|
|
34
|
+
declare function applyEnvFlag(args: string[]): string[];
|
|
29
35
|
declare function main(argv: string[]): void;
|
|
30
36
|
|
|
31
|
-
export { main, parseE2EFlags, scenarioInRootDiagnostic, scenarioNameFromPath };
|
|
37
|
+
export { applyEnvFlag, main, parseE2EFlags, scenarioInRootDiagnostic, scenarioNameFromPath };
|