sedum-cli 0.1.0-alpha.17 → 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,7 +5,7 @@ import {
5
5
  } from "./chunk-EFRMSNBD.js";
6
6
  import {
7
7
  discoverRunTests
8
- } from "./chunk-ZAACPFCW.js";
8
+ } from "./chunk-QVCT63FH.js";
9
9
  import {
10
10
  createCliProvider
11
11
  } from "./chunk-N5CTUO2A.js";
@@ -16,11 +16,11 @@ import {
16
16
  outputDiagnostic,
17
17
  setupDiagnostic,
18
18
  stopsRun
19
- } from "./chunk-GJ5QI7JQ.js";
19
+ } from "./chunk-CGDXQY2Y.js";
20
20
  import {
21
21
  ProjectConfigError,
22
22
  loadProjectConfig
23
- } from "./chunk-OKZ6VJKA.js";
23
+ } from "./chunk-J7CLCLHW.js";
24
24
 
25
25
  // src/run-command/implementation.ts
26
26
  import {
@@ -1067,10 +1067,10 @@ function validateVision(config) {
1067
1067
  // src/run-command/support.ts
1068
1068
  import { safeText } from "@sedum-dev/core";
1069
1069
  import path8 from "path";
1070
- function verifyGraceMs(value) {
1071
- if (value === void 0) return 5e3;
1070
+ function verifyGraceMs(value, configured = 5e3) {
1071
+ if (value === void 0) return configured;
1072
1072
  const parsed = Number(value);
1073
- return Number.isFinite(parsed) && parsed >= 0 && parsed <= 12e4 ? parsed : 5e3;
1073
+ return Number.isFinite(parsed) && parsed >= 0 && parsed <= 12e4 ? parsed : configured;
1074
1074
  }
1075
1075
  function strayRejectionDiagnostic(strays, config) {
1076
1076
  const stray = strays[0];
@@ -1275,7 +1275,10 @@ function testDependencies(request, resources, slot) {
1275
1275
  browserKind: config.browser,
1276
1276
  viewport: config.viewport,
1277
1277
  verifyPolicy: config.thresholds,
1278
- verifyGraceMs: verifyGraceMs(process.env.SEDUM_VERIFY_GRACE_MS),
1278
+ verifyGraceMs: verifyGraceMs(
1279
+ process.env.SEDUM_VERIFY_GRACE_MS,
1280
+ config.stepTimeoutMs
1281
+ ),
1279
1282
  ...config.baseUrl ? { baseUrl: config.baseUrl } : {},
1280
1283
  ...options.urlOverride ? { urlOverride: options.urlOverride } : {},
1281
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.17",
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.17",
47
- "@sedum-dev/provider-typesafe": "0.1.0-alpha.17",
48
- "@sedum-dev/reporters": "0.1.0-alpha.17",
49
- "@sedum-dev/provider-clef": "0.1.0-alpha.17"
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",