@swmansion/argent 0.35.1-next.7 → 0.35.1-next.8

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.
@@ -257,6 +257,10 @@ export interface ArgentToolArgs {
257
257
  path: string;
258
258
  /** Time limit in milliseconds. The default is 30000 and the minimum is 100. */
259
259
  timeout?: number;
260
+ /** Environment overrides for this script. Argent uses them immediately and saves them on the step. Values can include {{secret:NAME}}. */
261
+ env?: {
262
+ [key: string]: string;
263
+ };
260
264
  };
261
265
  "e2e-add-step": {
262
266
  /** Name of the e2e test being recorded: the one passed to e2e-start-recording. */
@@ -316,6 +320,16 @@ export interface ArgentToolArgs {
316
320
  /** @deprecated Renamed to `e2e_test_file`. */
317
321
  flow_file?: string;
318
322
  };
323
+ "e2e-set-env": {
324
+ /** Test name passed to e2e-start-recording. */
325
+ name: string;
326
+ /** Absolute project root passed to e2e-start-recording. */
327
+ project_root: string;
328
+ /** Variable names to update. A null value removes that name. Omitted names keep their values. Use {{secret:NAME}} for credentials. */
329
+ env: {
330
+ [key: string]: string | null;
331
+ };
332
+ };
319
333
  "e2e-start-recording": {
320
334
  /** Name for this e2e test (e.g. "settings-explore"): letters, digits, underscore and hyphen only. */
321
335
  name: string;
@@ -328,6 +342,10 @@ export interface ArgentToolArgs {
328
342
  platform?: "ios" | "android" | "chromium" | "vega" | "macos" | Array<"ios" | "android" | "chromium" | "vega" | "macos">;
329
343
  runtimeKind?: "mobile" | "tv";
330
344
  };
345
+ /** Default script environment values saved in the test's top-level env. Use {{secret:NAME}} for credentials. */
346
+ env?: {
347
+ [key: string]: string;
348
+ };
331
349
  };
332
350
  "file-panel": {
333
351
  /** Mac app id from `list-devices` (macos-app-<bundle id>). */