rtgl 1.0.10 → 1.0.12

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.
Files changed (2) hide show
  1. package/cli.js +8 -0
  2. package/package.json +3 -3
package/cli.js CHANGED
@@ -56,6 +56,13 @@ function parsePortOption(value) {
56
56
  return parsed;
57
57
  }
58
58
 
59
+ function parseIsolationOption(value) {
60
+ if (value === "fast" || value === "strict") {
61
+ return value;
62
+ }
63
+ throw new InvalidArgumentError(`Isolation must be "fast" or "strict", received "${value}"`);
64
+ }
65
+
59
66
  function resolveBeRuntimePaths(config) {
60
67
  const be = config?.be || {};
61
68
  const dirs = Array.isArray(be.dirs) && be.dirs.length > 0 ? be.dirs : ["./src/modules"];
@@ -444,6 +451,7 @@ vtCommand
444
451
  .option("--concurrency <number>", "Number of parallel capture workers", parseIntegerOption)
445
452
  .option("--timeout <ms>", "Global capture timeout in ms", parseIntegerOption)
446
453
  .option("--wait-event <name>", "Custom event name to mark page ready (uses event wait strategy)")
454
+ .option("--isolation <mode>", "Isolation mode: fast or strict", parseIsolationOption)
447
455
  .option("--folder <path>", "Run only specs under folder prefix (repeatable)", collectValues, [])
448
456
  .option("--group <section-key>", "Run only one section key from vt.sections (repeatable)", collectValues, [])
449
457
  .option("--item <spec-path>", "Run only one spec path relative to vt/specs (repeatable)", collectValues, [])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rtgl",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "CLI tool for Rettangoli - A frontend framework and development toolkit",
5
5
  "type": "module",
6
6
  "bin": {
@@ -51,7 +51,7 @@
51
51
  "@rettangoli/be": "1.0.2",
52
52
  "@rettangoli/fe": "1.0.4",
53
53
  "@rettangoli/sites": "1.0.1",
54
- "@rettangoli/vt": "1.0.3",
55
- "@rettangoli/ui": "1.0.9"
54
+ "@rettangoli/vt": "1.0.4",
55
+ "@rettangoli/ui": "1.0.11"
56
56
  }
57
57
  }