sedum-cli 0.1.0-alpha.18 → 0.1.0-alpha.20

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.
@@ -5,20 +5,22 @@ import {
5
5
  } from "./chunk-EFRMSNBD.js";
6
6
  import {
7
7
  discoverRunTests
8
- } from "./chunk-6ILFLNDI.js";
8
+ } from "./chunk-QVCT63FH.js";
9
9
  import {
10
10
  createCliProvider
11
11
  } from "./chunk-N5CTUO2A.js";
12
12
  import {
13
13
  DetectorUnsupportedError,
14
- ProjectConfigError,
15
14
  canonicalDiagnosticError,
16
15
  flowDiagnostic,
17
- loadProjectConfig,
18
16
  outputDiagnostic,
19
17
  setupDiagnostic,
20
18
  stopsRun
21
- } from "./chunk-KZF4NZ6M.js";
19
+ } from "./chunk-CGDXQY2Y.js";
20
+ import {
21
+ ProjectConfigError,
22
+ loadProjectConfig
23
+ } from "./chunk-J7CLCLHW.js";
22
24
 
23
25
  // src/run-command/implementation.ts
24
26
  import {
@@ -1065,10 +1067,10 @@ function validateVision(config) {
1065
1067
  // src/run-command/support.ts
1066
1068
  import { safeText } from "@sedum-dev/core";
1067
1069
  import path8 from "path";
1068
- function verifyGraceMs(value) {
1069
- if (value === void 0) return 5e3;
1070
+ function verifyGraceMs(value, configured = 5e3) {
1071
+ if (value === void 0) return configured;
1070
1072
  const parsed = Number(value);
1071
- return Number.isFinite(parsed) && parsed >= 0 && parsed <= 12e4 ? parsed : 5e3;
1073
+ return Number.isFinite(parsed) && parsed >= 0 && parsed <= 12e4 ? parsed : configured;
1072
1074
  }
1073
1075
  function strayRejectionDiagnostic(strays, config) {
1074
1076
  const stray = strays[0];
@@ -1273,7 +1275,10 @@ function testDependencies(request, resources, slot) {
1273
1275
  browserKind: config.browser,
1274
1276
  viewport: config.viewport,
1275
1277
  verifyPolicy: config.thresholds,
1276
- verifyGraceMs: verifyGraceMs(process.env.SEDUM_VERIFY_GRACE_MS),
1278
+ verifyGraceMs: verifyGraceMs(
1279
+ process.env.SEDUM_VERIFY_GRACE_MS,
1280
+ config.stepTimeoutMs
1281
+ ),
1277
1282
  ...config.baseUrl ? { baseUrl: config.baseUrl } : {},
1278
1283
  ...options.urlOverride ? { urlOverride: options.urlOverride } : {},
1279
1284
  ...options.headed ? { headless: false, headedOverlay: true } : {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sedum-cli",
3
- "version": "0.1.0-alpha.18",
3
+ "version": "0.1.0-alpha.20",
4
4
  "description": "Plain-English browser tests on Playwright. Write steps as sentences, keep TypeScript, and run the suite on every pull request.",
5
5
  "keywords": [
6
6
  "playwright",
@@ -43,10 +43,11 @@
43
43
  "commander": "14.0.2",
44
44
  "minimatch": "10.2.6",
45
45
  "yaml": "2.9.1",
46
- "@sedum-dev/core": "0.1.0-alpha.18",
47
- "@sedum-dev/provider-clef": "0.1.0-alpha.18",
48
- "@sedum-dev/provider-typesafe": "0.1.0-alpha.18",
49
- "@sedum-dev/reporters": "0.1.0-alpha.18"
46
+ "zod": "4.6.7",
47
+ "@sedum-dev/core": "0.1.0-alpha.20",
48
+ "@sedum-dev/provider-clef": "0.1.0-alpha.20",
49
+ "@sedum-dev/provider-typesafe": "0.1.0-alpha.20",
50
+ "@sedum-dev/reporters": "0.1.0-alpha.20"
50
51
  },
51
52
  "scripts": {
52
53
  "build": "tsup src/index.ts src/cli.ts --format esm --dts --clean --out-dir dist",