@unotest/web 0.5.0 → 0.6.2

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.
@@ -1,3 +1,6 @@
1
+ import { L as LintDiagnostic } from '../linter-DzAzJpab.js';
2
+ import '@unotest/dsl';
3
+
1
4
  /** Parse `e2e` flag arguments. Strips known flags, returns positional
2
5
  * args + parsed values. Order-insensitive — flags can appear before
3
6
  * or after the scenario name. Unknown flags pass through to positional
@@ -17,6 +20,12 @@ declare function parseE2EFlags(args: string[]): {
17
20
  * ScenariosDiscoveryService so identity stays joined across the wire.
18
21
  * Exported only for tests. */
19
22
  declare function scenarioNameFromPath(scenarioPath: string, cwd: string): string | null;
23
+ /** Flag a scenario that sits directly in `unotest/e2e/` instead of a feature
24
+ * subfolder (`lint:scenario-in-root`). Files whose basename starts with `_`
25
+ * (`_template.js`, anything under `_helpers/`) are exempt — they aren't
26
+ * scenarios. Returns null for files in a subfolder or outside `unotest/e2e/`.
27
+ * Exported only for tests. */
28
+ declare function scenarioInRootDiagnostic(file: string, cwd: string): LintDiagnostic | null;
20
29
  declare function main(argv: string[]): void;
21
30
 
22
- export { main, parseE2EFlags, scenarioNameFromPath };
31
+ export { main, parseE2EFlags, scenarioInRootDiagnostic, scenarioNameFromPath };