@unotest/web 0.10.0 → 0.11.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.
@@ -8,6 +8,16 @@ import '@unotest/dsl';
8
8
  * ScenariosDiscoveryService so identity stays joined across the wire.
9
9
  * Exported only for tests. */
10
10
  declare function scenarioNameFromPath(scenarioPath: string, cwd: string): string | null;
11
+ /** `e2e e2e <name>`-style typos leave the real name as a silently ignored
12
+ * extra token — reject instead. Returns a ready stderr message, or null
13
+ * when the positional list is fine. Exported only for tests. */
14
+ declare function extraPositionalsError(cmd: string, positional: string[]): string | null;
15
+ /** Stderr text for a scenario reference that didn't land on a file.
16
+ * Names the directory trap explicitly (a project-level `e2e/` folder
17
+ * shadowing a scenario name gets a different message than a plain miss)
18
+ * and closes with a did-you-mean over `unotest/e2e/**`.
19
+ * Exported only for tests. */
20
+ declare function scenarioNotFoundMessage(arg: string, scenarioPath: string, cwd: string): string;
11
21
  /** Flag a scenario that sits directly in `unotest/e2e/` instead of a feature
12
22
  * subfolder (`lint:scenario-in-root`). Files whose basename starts with `_`
13
23
  * (`_template.js`, anything under `_helpers/`) are exempt — they aren't
@@ -22,4 +32,4 @@ declare function scenarioInRootDiagnostic(file: string, cwd: string): LintDiagno
22
32
  declare function applyEnvFlag(args: string[]): string[];
23
33
  declare function main(argv: string[]): void;
24
34
 
25
- export { applyEnvFlag, main, scenarioInRootDiagnostic, scenarioNameFromPath };
35
+ export { applyEnvFlag, extraPositionalsError, main, scenarioInRootDiagnostic, scenarioNameFromPath, scenarioNotFoundMessage };