@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.
@@ -1,4 +1,4 @@
1
- import { L as LintDiagnostic } from '../linter-DzAzJpab.js';
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 };