@gfdelarue/testkit 0.4.4 → 0.5.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.
- package/README.md +752 -462
- package/bin/testkit-windows-owner-arm64.exe +0 -0
- package/bin/testkit-windows-owner-x64.exe +0 -0
- package/dist/app/bugs/categories.js +1 -1
- package/dist/app/bugs/ci-report.js +2 -2
- package/dist/app/bugs/ci-summary.js +3 -3
- package/dist/app/bugs/draft.js +4 -4
- package/dist/app/bugs/facts.js +2 -2
- package/dist/app/bugs/file.js +1 -1
- package/dist/app/bugs/gate.js +1 -1
- package/dist/app/bugs/guide.js +3 -3
- package/dist/app/bugs/issue.js +4 -4
- package/dist/app/bugs/known-failures.js +1 -1
- package/dist/app/bugs/record.js +2 -2
- package/dist/app/bugs/run-reading.js +1 -1
- package/dist/app/bugs/supplied-reproduce.js +1 -0
- package/dist/app/campaigns/campaign.js +1 -1
- package/dist/app/cleanup/index.js +1 -1
- package/dist/app/db-schema/prepare.js +1 -1
- package/dist/app/destroy/index.js +1 -1
- package/dist/app/discover/index.js +2 -2
- package/dist/app/doctor/index.js +1 -1
- package/dist/app/environments/config-driven.js +1 -0
- package/dist/app/environments/environment-file.js +1 -0
- package/dist/app/environments/file-setup.js +1 -0
- package/dist/app/environments/routing.js +1 -0
- package/dist/app/environments/static-values.js +1 -0
- package/dist/app/environments/supplied-input.js +1 -0
- package/dist/app/environments/supplied.js +1 -0
- package/dist/app/environments/task-databases.js +2 -0
- package/dist/app/file-selection.js +1 -1
- package/dist/app/inspect/artifacts.js +1 -1
- package/dist/app/inspect/index.js +1 -1
- package/dist/app/lint/index.js +1 -1
- package/dist/app/lint/native.js +1 -1
- package/dist/app/lint/options.js +1 -1
- package/dist/app/lint/rules/data.js +1 -1
- package/dist/app/lint/rules/engine-imports.js +1 -1
- package/dist/app/lint/rules/syntax.js +1 -1
- package/dist/app/lint/rules/unit.js +1 -1
- package/dist/app/lint/shared.js +1 -1
- package/dist/app/package-inspection.js +1 -1
- package/dist/app/reports/files.js +1 -0
- package/dist/app/reports/prepare.js +2 -0
- package/dist/app/reports/publish.js +1 -0
- package/dist/app/run/caller-redaction.js +1 -0
- package/dist/app/run/engine-evidence-persistence.js +1 -1
- package/dist/app/run/engine-execution-failures.js +1 -1
- package/dist/app/run/engine-execution-reporting.js +1 -1
- package/dist/app/run/engine-execution.js +1 -1
- package/dist/app/run/engine-orchestration.js +1 -1
- package/dist/app/run/environment.js +1 -0
- package/dist/app/run/failure-details.js +1 -1
- package/dist/app/run/live-run.js +1 -1
- package/dist/app/run/orchestrator.js +1 -1
- package/dist/app/run/planning.js +1 -1
- package/dist/app/run/request.js +1 -1
- package/dist/app/run/results.js +1 -1
- package/dist/app/run/run-events.js +1 -1
- package/dist/app/run/run-finalization.js +1 -1
- package/dist/app/run/runtime-fixtures.js +1 -1
- package/dist/app/run/scheduler/estimates.js +1 -1
- package/dist/app/run/scheduler/identity.js +1 -1
- package/dist/app/run/scheduler/index.js +1 -1
- package/dist/app/run/scheduler/locks.js +1 -0
- package/dist/app/run/selection.js +1 -1
- package/dist/app/run/setup/runtime-node-setup-protocol.js +1 -1
- package/dist/app/run/setup/runtime-node-setup-worker.js +1 -1
- package/dist/app/run/setup/runtime-node-setup.js +2 -2
- package/dist/app/run/task-batches.js +1 -1
- package/dist/app/run/task-leases.js +1 -0
- package/dist/app/run/worker-loop.js +1 -1
- package/dist/app/status/runs.js +1 -1
- package/dist/app/tracker/index.js +1 -1
- package/dist/app/typecheck/index.js +4 -4
- package/dist/cli/command-catalog.js +1 -1
- package/dist/cli/command-flags.js +1 -1
- package/dist/cli/command-registry.js +1 -1
- package/dist/cli/commands/artifacts.js +2 -2
- package/dist/cli/commands/bug/file.js +2 -2
- package/dist/cli/commands/bug/record.js +2 -2
- package/dist/cli/commands/discover.js +1 -1
- package/dist/cli/commands/report/prepare.js +5 -0
- package/dist/cli/commands/report/publish.js +2 -0
- package/dist/cli/commands/run.js +2 -2
- package/dist/cli/commands/typecheck.js +1 -1
- package/dist/cli/commands/workspace.js +1 -1
- package/dist/cli/framework/errors.js +1 -1
- package/dist/cli/framework/execute.js +7 -6
- package/dist/cli/framework/parser.js +1 -1
- package/dist/cli/json-errors.js +1 -1
- package/dist/cli/operations/run/operation.js +2 -2
- package/dist/cli/renderers/bug/text.js +1 -1
- package/dist/cli/renderers/discover/report.js +1 -1
- package/dist/cli/renderers/doctor/text.js +1 -1
- package/dist/cli/renderers/run/events.js +2 -2
- package/dist/cli/renderers/run/formatting.js +1 -1
- package/dist/cli/renderers/run/status.js +1 -1
- package/dist/cli/renderers/run/text-reporter.js +24 -22
- package/dist/cli/terminal/colors.js +1 -1
- package/dist/cli/terminal/layout.js +2 -2
- package/dist/config/authoring/http-methods.js +1 -1
- package/dist/config/authoring/index.js +1 -1
- package/dist/config/authoring/preset-env.js +1 -1
- package/dist/config/loader/config-loader.js +1 -1
- package/dist/config/loader/database.js +1 -1
- package/dist/config/loader/decode-execution.js +1 -1
- package/dist/config/loader/dependencies.js +1 -1
- package/dist/config/loader/discover-tests.js +1 -1
- package/dist/config/loader/discovery-summary.js +1 -1
- package/dist/config/loader/discovery.js +2 -2
- package/dist/config/loader/env.js +1 -1
- package/dist/config/loader/execution-model.js +1 -1
- package/dist/config/loader/file-metadata.js +1 -1
- package/dist/config/loader/groups.js +1 -0
- package/dist/config/loader/index.js +1 -1
- package/dist/config/loader/load.js +1 -1
- package/dist/config/loader/managed-configs.js +1 -1
- package/dist/config/loader/owned-discovery.js +1 -0
- package/dist/config/loader/path-policy.js +1 -1
- package/dist/config/loader/runtime-isolation.js +1 -1
- package/dist/config/loader/runtime.js +1 -1
- package/dist/config/loader/skip-config.js +1 -1
- package/dist/config/loader/task-policy.js +1 -0
- package/dist/config/loader/test-selection.js +1 -1
- package/dist/config/loader/validation.js +1 -1
- package/dist/database/activity-gate.js +1 -1
- package/dist/database/admin.js +2 -2
- package/dist/database/bindings.js +1 -0
- package/dist/database/cleanup.js +1 -1
- package/dist/database/docker-metadata.js +3 -3
- package/dist/database/docker.js +3 -3
- package/dist/database/index.js +1 -1
- package/dist/database/lifecycle-cleanup.js +1 -1
- package/dist/database/local-postgres.js +1 -1
- package/dist/database/naming.js +1 -1
- package/dist/database/postgres/connection-check.js +1 -0
- package/dist/database/postgres/protocol.js +2 -0
- package/dist/database/schema-operations.js +1 -1
- package/dist/database/schema-source.js +3 -3
- package/dist/database/source-schema-env.js +1 -0
- package/dist/database/source-url.js +2 -2
- package/dist/database/state-files.js +1 -1
- package/dist/database/state.js +1 -1
- package/dist/database/steps.js +3 -3
- package/dist/domain/file-timeout.js +1 -1
- package/dist/domain/identifiers.js +1 -1
- package/dist/domain/operation-display.js +1 -1
- package/dist/domain/retired-test-types.js +1 -0
- package/dist/domain/runtime-isolation-contract.js +1 -1
- package/dist/domain/suite-selection.js +1 -1
- package/dist/domain/test-outcomes.js +1 -1
- package/dist/domain/test-types.js +1 -1
- package/dist/engines/adapters/evidence-files.js +1 -1
- package/dist/engines/adapters/evidence-identity.js +1 -1
- package/dist/engines/adapters/execution.js +1 -1
- package/dist/engines/adapters/json-bounds.js +2 -0
- package/dist/engines/adapters/native-report.js +1 -1
- package/dist/engines/api/execution-scope.js +1 -1
- package/dist/engines/api/execution.js +1 -1
- package/dist/engines/api/index.js +1 -1
- package/dist/engines/api/runtime-artifact.js +1 -1
- package/dist/engines/bundle-cache.js +1 -1
- package/dist/engines/catalog.js +1 -1
- package/dist/engines/contracts/environment-values.js +1 -0
- package/dist/engines/contracts/fixture-manifest.js +1 -1
- package/dist/engines/definitions.js +1 -1
- package/dist/engines/environment/handles.js +1 -0
- package/dist/engines/environment/index.js +1 -0
- package/dist/engines/factory.js +1 -1
- package/dist/engines/installations/node-vitest.js +1 -1
- package/dist/engines/installations/package-resolution.js +1 -1
- package/dist/engines/installations/playwright-resolution-child.js +1 -1
- package/dist/engines/installations/playwright.js +1 -1
- package/dist/engines/managed-module-resolution-policy-input.js +1 -1
- package/dist/engines/managed-module-resolution-policy.js +1 -1
- package/dist/engines/managed-module-resolution.js +2 -2
- package/dist/engines/manager.js +1 -1
- package/dist/engines/node-vitest/adapter/adapter.js +1 -1
- package/dist/engines/node-vitest/adapter/driver.js +2 -0
- package/dist/engines/node-vitest/adapter/evidence.js +2 -2
- package/dist/engines/node-vitest/adapter/failure-details.js +4 -2
- package/dist/engines/node-vitest/adapter/reporter.js +1 -1
- package/dist/engines/node-vitest/adapter/workspace.js +31 -192
- package/dist/engines/node-vitest/inventory/index.js +2 -0
- package/dist/engines/node-vitest/inventory/list-files.js +3 -0
- package/dist/engines/node-vitest/runtime/contract/index.js +1 -1
- package/dist/engines/node-vitest/runtime/data/http.js +1 -1
- package/dist/engines/node-vitest/runtime/data/index.js +1 -1
- package/dist/engines/node-vitest/runtime/data/report.js +5 -6
- package/dist/engines/node-vitest/runtime/data/scenario.js +2 -2
- package/dist/engines/node-vitest/runtime/runtime-input.js +1 -1
- package/dist/engines/node-vitest/selection.js +1 -0
- package/dist/engines/playwright/adapter/adapter.js +1 -1
- package/dist/engines/playwright/adapter/config.js +4 -4
- package/dist/engines/playwright/adapter/evidence-validation.js +1 -1
- package/dist/engines/playwright/adapter/evidence.js +1 -1
- package/dist/engines/playwright/adapter/reporter.js +1 -1
- package/dist/engines/playwright/runtime/config-file.js +1 -1
- package/dist/engines/playwright/runtime/config.js +1 -1
- package/dist/engines/playwright/runtime/runtime-input.js +43 -20
- package/dist/engines/runtime-input-file.js +1 -1
- package/dist/environment/lifecycle-artifacts.js +1 -1
- package/dist/environment/lifecycle-controller.js +1 -1
- package/dist/environment/lifecycle.js +1 -1
- package/dist/environment/ports.js +1 -0
- package/dist/environment/ready-environment.js +1 -1
- package/dist/environment/run-environment.js +1 -1
- package/dist/environment/run-stopping.js +1 -1
- package/dist/environment/runtime-contexts.js +1 -1
- package/dist/environment/runtime-manager.js +1 -1
- package/dist/environment/runtime-planning.js +1 -1
- package/dist/environment/runtime-preparation.js +1 -1
- package/dist/environment/services.js +3 -1
- package/dist/environment/state.js +1 -1
- package/dist/environment/template.js +1 -1
- package/dist/evidence/artifact-config.js +1 -1
- package/dist/evidence/artifact-validation.js +1 -1
- package/dist/evidence/artifacts.js +2 -2
- package/dist/evidence/bundles.js +1 -1
- package/dist/evidence/environment-record.js +1 -0
- package/dist/evidence/index.js +1 -1
- package/dist/evidence/logs.js +2 -2
- package/dist/evidence/operation-timings.js +1 -1
- package/dist/evidence/read-fields.js +1 -1
- package/dist/evidence/read-run.js +1 -1
- package/dist/evidence/reading.js +1 -1
- package/dist/evidence/redaction.js +4 -0
- package/dist/evidence/reporting.js +1 -1
- package/dist/evidence/run-model.js +1 -0
- package/dist/evidence/storage.js +2 -2
- package/dist/evidence/timing.js +1 -1
- package/dist/kernel/error-serialization.js +1 -1
- package/dist/kernel/redaction-targets.js +1 -0
- package/dist/kernel/redaction.js +4 -1
- package/dist/kernel/unknown-values.js +1 -1
- package/dist/process/environment.js +1 -1
- package/dist/process/execa-bundle.json +3 -3
- package/dist/process/files/json-file.js +1 -1
- package/dist/process/files/paths.js +1 -1
- package/dist/process/host/metadata.js +1 -1
- package/dist/process/host/platform.js +1 -1
- package/dist/process/host-process.js +1 -1
- package/dist/process/index.js +1 -1
- package/dist/process/lifecycle-fence.js +1 -1
- package/dist/process/locks.js +4 -4
- package/dist/process/port-listener.js +2 -0
- package/dist/process/process-group.js +1 -1
- package/dist/process/process-identity.js +1 -1
- package/dist/process/process.js +33 -33
- package/dist/process/readiness.js +1 -1
- package/dist/process/ready-deadline.js +1 -0
- package/dist/process/recovery.js +1 -1
- package/dist/process/runs/manifest.js +1 -1
- package/dist/process/runs/ownership.js +1 -1
- package/dist/process/runs/product-state.js +1 -1
- package/dist/process/runs/stop.js +1 -1
- package/dist/process/service-processes.js +1 -1
- package/dist/process/stoppable-settlement.js +1 -0
- package/dist/process/url-redaction.js +1 -0
- package/dist/process/windows-cli-owner.js +3 -3
- package/dist/process/windows-native.js +1 -1
- package/dist/repo/ci-environment.js +1 -1
- package/dist/repo/fingerprint-policy.js +1 -1
- package/dist/repo/managed-git.js +1 -1
- package/dist/repo/physical-tree.js +1 -1
- package/dist/repo/publish-directory.js +3 -0
- package/dist/repo/state.js +4 -4
- package/dist/steps/build-config.js +1 -1
- package/dist/steps/configured-step-testkit-modules.js +1 -1
- package/dist/steps/configured-steps.js +1 -1
- package/dist/steps/environment.js +1 -1
- package/dist/steps/index.js +1 -1
- package/dist/steps/run.js +2 -2
- package/dist/toolchains/archive.js +1 -1
- package/dist/toolchains/index.js +3 -3
- package/dist/toolchains/node-provisioning.js +2 -2
- package/dist/toolchains/semver.js +1 -1
- package/dist/toolchains/vitest/index.js +1 -1
- package/dist/tracker/redaction.js +1 -2
- package/dist/{config/runtime/build-assets.d.ts → types/config-build-assets.d.ts} +5 -3
- package/dist/{database/steps.d.ts → types/config-database-steps.d.ts} +7 -7
- package/dist/{config/runtime/next-runtime-tsconfig.d.ts → types/config-next-runtime-tsconfig.d.ts} +5 -3
- package/dist/types/config.d.ts +501 -0
- package/dist/types/drizzle.d.ts +13 -0
- package/dist/{config/runtime/env/index.d.ts → types/env.d.ts} +22 -20
- package/dist/types/environment.d.ts +40 -0
- package/dist/types/index.d.ts +21 -0
- package/dist/types/node-vitest-contract.d.ts +75 -0
- package/dist/types/node-vitest-data.d.ts +407 -0
- package/dist/types/playwright.d.ts +130 -0
- package/dist/types/tooling-vitest.d.ts +13 -0
- package/dist/types/workspace.d.ts +617 -0
- package/docs/bug-records.md +83 -81
- package/docs/engines.md +213 -0
- package/docs/test-types.md +35 -33
- package/package.json +22 -29
- package/testkit-config-schema.md +403 -171
- package/dist/app/bugs/areas.d.ts +0 -38
- package/dist/app/bugs/assessment.d.ts +0 -9
- package/dist/app/bugs/categories.d.ts +0 -41
- package/dist/app/bugs/ci-report.d.ts +0 -21
- package/dist/app/bugs/ci-summary.d.ts +0 -13
- package/dist/app/bugs/draft.d.ts +0 -70
- package/dist/app/bugs/facts.d.ts +0 -48
- package/dist/app/bugs/file.d.ts +0 -45
- package/dist/app/bugs/gate.d.ts +0 -22
- package/dist/app/bugs/guide.d.ts +0 -20
- package/dist/app/bugs/issue.d.ts +0 -18
- package/dist/app/bugs/known-failures.d.ts +0 -49
- package/dist/app/bugs/record.d.ts +0 -14
- package/dist/app/bugs/run-reading.d.ts +0 -51
- package/dist/app/bugs/store.d.ts +0 -34
- package/dist/app/campaigns/brief.d.ts +0 -7
- package/dist/app/campaigns/campaign.d.ts +0 -14
- package/dist/app/campaigns/index.d.ts +0 -38
- package/dist/app/campaigns/store.d.ts +0 -5
- package/dist/app/campaigns/summary.d.ts +0 -13
- package/dist/app/cleanup/index.d.ts +0 -52
- package/dist/app/db-schema/prepare.d.ts +0 -11
- package/dist/app/db-schema/refresh.d.ts +0 -17
- package/dist/app/db-schema/verify.d.ts +0 -11
- package/dist/app/destroy/index.d.ts +0 -16
- package/dist/app/discover/index.d.ts +0 -8
- package/dist/app/doctor/index.d.ts +0 -17
- package/dist/app/file-selection.d.ts +0 -1
- package/dist/app/inspect/artifacts.d.ts +0 -30
- package/dist/app/inspect/index.d.ts +0 -112
- package/dist/app/lint/index.d.ts +0 -28
- package/dist/app/lint/native.d.ts +0 -10
- package/dist/app/lint/options.d.ts +0 -67
- package/dist/app/lint/policy.d.ts +0 -21
- package/dist/app/lint/rules/data.d.ts +0 -3
- package/dist/app/lint/rules/engine-imports.d.ts +0 -3
- package/dist/app/lint/rules/syntax.d.ts +0 -4
- package/dist/app/lint/rules/unit.d.ts +0 -3
- package/dist/app/lint/shared.d.ts +0 -36
- package/dist/app/package-inspection.d.ts +0 -20
- package/dist/app/run/endpoint-readiness.d.ts +0 -43
- package/dist/app/run/endpoint-readiness.js +0 -1
- package/dist/app/run/engine-evidence-persistence.d.ts +0 -39
- package/dist/app/run/engine-execution-cleanup.d.ts +0 -8
- package/dist/app/run/engine-execution-cleanup.js +0 -1
- package/dist/app/run/engine-execution-failures.d.ts +0 -41
- package/dist/app/run/engine-execution-observer.d.ts +0 -21
- package/dist/app/run/engine-execution-reporting.d.ts +0 -17
- package/dist/app/run/engine-execution.d.ts +0 -63
- package/dist/app/run/engine-failure-stack.d.ts +0 -1
- package/dist/app/run/engine-orchestration.d.ts +0 -49
- package/dist/app/run/failure-details.d.ts +0 -37
- package/dist/app/run/live-run.d.ts +0 -27
- package/dist/app/run/operation-progress.d.ts +0 -13
- package/dist/app/run/orchestrator.d.ts +0 -68
- package/dist/app/run/planning-types.d.ts +0 -68
- package/dist/app/run/planning.d.ts +0 -15
- package/dist/app/run/playwright-configuration.d.ts +0 -2
- package/dist/app/run/playwright-configuration.js +0 -1
- package/dist/app/run/request.d.ts +0 -30
- package/dist/app/run/results.d.ts +0 -161
- package/dist/app/run/run-events.d.ts +0 -144
- package/dist/app/run/run-finalization.d.ts +0 -52
- package/dist/app/run/run-guards.d.ts +0 -3
- package/dist/app/run/runtime-failures.d.ts +0 -18
- package/dist/app/run/runtime-fixtures.d.ts +0 -2
- package/dist/app/run/runtime-task-types.d.ts +0 -20
- package/dist/app/run/scheduler/estimates.d.ts +0 -32
- package/dist/app/run/scheduler/identity.d.ts +0 -9
- package/dist/app/run/scheduler/index.d.ts +0 -124
- package/dist/app/run/scheduler/observations.d.ts +0 -20
- package/dist/app/run/selection.d.ts +0 -10
- package/dist/app/run/setup/runtime-node-setup-errors.d.ts +0 -13
- package/dist/app/run/setup/runtime-node-setup-protocol.d.ts +0 -85
- package/dist/app/run/setup/runtime-node-setup-worker.d.ts +0 -1
- package/dist/app/run/setup/runtime-node-setup.d.ts +0 -48
- package/dist/app/run/task-batches.d.ts +0 -23
- package/dist/app/run/worker-loop.d.ts +0 -57
- package/dist/app/setup/playwright.d.ts +0 -22
- package/dist/app/status/index.d.ts +0 -9
- package/dist/app/status/model.d.ts +0 -29
- package/dist/app/status/runs.d.ts +0 -99
- package/dist/app/stop/index.d.ts +0 -14
- package/dist/app/tracker/index.d.ts +0 -8
- package/dist/app/tracker/remote.d.ts +0 -13
- package/dist/app/tracker/token.d.ts +0 -7
- package/dist/app/typecheck/index.d.ts +0 -63
- package/dist/cli/command-catalog.d.ts +0 -137
- package/dist/cli/command-flags.d.ts +0 -19
- package/dist/cli/command-registry.d.ts +0 -3
- package/dist/cli/commands/artifacts.d.ts +0 -48
- package/dist/cli/commands/bug/file.d.ts +0 -16
- package/dist/cli/commands/bug/guide.d.ts +0 -5
- package/dist/cli/commands/bug/record.d.ts +0 -9
- package/dist/cli/commands/campaign/finish.d.ts +0 -10
- package/dist/cli/commands/campaign/start.d.ts +0 -7
- package/dist/cli/commands/campaign/status.d.ts +0 -13
- package/dist/cli/commands/ci/report.d.ts +0 -15
- package/dist/cli/commands/cleanup.d.ts +0 -13
- package/dist/cli/commands/db/schema/refresh.d.ts +0 -2
- package/dist/cli/commands/db/schema/verify.d.ts +0 -2
- package/dist/cli/commands/destroy.d.ts +0 -9
- package/dist/cli/commands/discover.d.ts +0 -2
- package/dist/cli/commands/doctor.d.ts +0 -2
- package/dist/cli/commands/guard/unsafe-entrypoint.d.ts +0 -2
- package/dist/cli/commands/lint.d.ts +0 -2
- package/dist/cli/commands/run/status.d.ts +0 -5
- package/dist/cli/commands/run/stop.d.ts +0 -7
- package/dist/cli/commands/run.d.ts +0 -9
- package/dist/cli/commands/setup/playwright.d.ts +0 -2
- package/dist/cli/commands/status.d.ts +0 -5
- package/dist/cli/commands/stop.d.ts +0 -12
- package/dist/cli/commands/typecheck.d.ts +0 -2
- package/dist/cli/commands/workspace.d.ts +0 -2
- package/dist/cli/entrypoint.d.ts +0 -1
- package/dist/cli/framework/command.d.ts +0 -21
- package/dist/cli/framework/definitions.d.ts +0 -100
- package/dist/cli/framework/errors.d.ts +0 -6
- package/dist/cli/framework/execute.d.ts +0 -14
- package/dist/cli/framework/help.d.ts +0 -11
- package/dist/cli/framework/index.d.ts +0 -3
- package/dist/cli/framework/parser.d.ts +0 -6
- package/dist/cli/index.d.ts +0 -4
- package/dist/cli/json-errors.d.ts +0 -3
- package/dist/cli/operations/db/schema/refresh/operation.d.ts +0 -7
- package/dist/cli/operations/db/schema/verify/operation.d.ts +0 -7
- package/dist/cli/operations/run/operation.d.ts +0 -24
- package/dist/cli/process-signal.d.ts +0 -1
- package/dist/cli/renderers/bug/text.d.ts +0 -8
- package/dist/cli/renderers/campaign/text.d.ts +0 -2
- package/dist/cli/renderers/ci/text.d.ts +0 -2
- package/dist/cli/renderers/cleanup/format.d.ts +0 -14
- package/dist/cli/renderers/db-schema/text.d.ts +0 -4
- package/dist/cli/renderers/destroy/text.d.ts +0 -4
- package/dist/cli/renderers/discover/report.d.ts +0 -7
- package/dist/cli/renderers/discover/text.d.ts +0 -3
- package/dist/cli/renderers/doctor/text.d.ts +0 -2
- package/dist/cli/renderers/lint/text.d.ts +0 -2
- package/dist/cli/renderers/run/events.d.ts +0 -8
- package/dist/cli/renderers/run/failure.d.ts +0 -8
- package/dist/cli/renderers/run/formatting.d.ts +0 -79
- package/dist/cli/renderers/run/status.d.ts +0 -6
- package/dist/cli/renderers/run/text-reporter.d.ts +0 -19
- package/dist/cli/renderers/status/text.d.ts +0 -2
- package/dist/cli/renderers/stop/text.d.ts +0 -7
- package/dist/cli/renderers/typecheck/text.d.ts +0 -2
- package/dist/cli/terminal/colors.d.ts +0 -10
- package/dist/cli/terminal/layout.d.ts +0 -11
- package/dist/cli/version-drift.d.ts +0 -25
- package/dist/config/authoring/build-config-contract.d.ts +0 -27
- package/dist/config/authoring/configured-step-contract.d.ts +0 -18
- package/dist/config/authoring/http-execution-contract.d.ts +0 -70
- package/dist/config/authoring/http-methods.d.ts +0 -18
- package/dist/config/authoring/index.d.ts +0 -381
- package/dist/config/authoring/preset-env.d.ts +0 -19
- package/dist/config/authoring/runtime.d.ts +0 -64
- package/dist/config/loader/bugs.d.ts +0 -15
- package/dist/config/loader/config-loader.d.ts +0 -9
- package/dist/config/loader/database-materialization.d.ts +0 -19
- package/dist/config/loader/database-roles.d.ts +0 -2
- package/dist/config/loader/database.d.ts +0 -55
- package/dist/config/loader/decode-discovery.d.ts +0 -5
- package/dist/config/loader/decode-execution.d.ts +0 -9
- package/dist/config/loader/dependencies.d.ts +0 -7
- package/dist/config/loader/discover-tests.d.ts +0 -111
- package/dist/config/loader/discovery-summary.d.ts +0 -29
- package/dist/config/loader/discovery.d.ts +0 -54
- package/dist/config/loader/env.d.ts +0 -4
- package/dist/config/loader/execution-model.d.ts +0 -16
- package/dist/config/loader/file-metadata.d.ts +0 -19
- package/dist/config/loader/index.d.ts +0 -10
- package/dist/config/loader/load.d.ts +0 -91
- package/dist/config/loader/managed-configs.d.ts +0 -23
- package/dist/config/loader/path-policy.d.ts +0 -9
- package/dist/config/loader/paths.d.ts +0 -5
- package/dist/config/loader/runtime-isolation.d.ts +0 -44
- package/dist/config/loader/runtime.d.ts +0 -25
- package/dist/config/loader/skip-config.d.ts +0 -44
- package/dist/config/loader/test-selection.d.ts +0 -15
- package/dist/config/loader/validation.d.ts +0 -16
- package/dist/config/loader/values.d.ts +0 -4
- package/dist/config/loader/values.js +0 -1
- package/dist/database/activity-gate.d.ts +0 -22
- package/dist/database/admin.d.ts +0 -31
- package/dist/database/cleanup.d.ts +0 -36
- package/dist/database/configured-steps.d.ts +0 -27
- package/dist/database/constants.d.ts +0 -11
- package/dist/database/docker-metadata.d.ts +0 -3
- package/dist/database/docker.d.ts +0 -65
- package/dist/database/drizzle/index.d.ts +0 -13
- package/dist/database/fingerprint.d.ts +0 -12
- package/dist/database/index.d.ts +0 -39
- package/dist/database/lifecycle-cleanup.d.ts +0 -7
- package/dist/database/local-postgres.d.ts +0 -71
- package/dist/database/naming.d.ts +0 -17
- package/dist/database/postgres/index.d.ts +0 -71
- package/dist/database/progress.d.ts +0 -6
- package/dist/database/roles.d.ts +0 -19
- package/dist/database/runtime-config.d.ts +0 -16
- package/dist/database/runtime-reservations.d.ts +0 -19
- package/dist/database/schema-operations.d.ts +0 -18
- package/dist/database/schema-source.d.ts +0 -96
- package/dist/database/source-refresh-lock.d.ts +0 -8
- package/dist/database/source-url.d.ts +0 -22
- package/dist/database/state-files.d.ts +0 -13
- package/dist/database/state.d.ts +0 -26
- package/dist/database/template-steps.d.ts +0 -39
- package/dist/domain/file-timeout.d.ts +0 -28
- package/dist/domain/identifiers.d.ts +0 -9
- package/dist/domain/operation-display.d.ts +0 -10
- package/dist/domain/operation-reason.d.ts +0 -5
- package/dist/domain/postgres-route.d.ts +0 -4
- package/dist/domain/runtime-identity.d.ts +0 -1
- package/dist/domain/runtime-isolation-contract.d.ts +0 -5
- package/dist/domain/service-name.d.ts +0 -2
- package/dist/domain/suite-selection.d.ts +0 -20
- package/dist/domain/test-outcomes.d.ts +0 -3
- package/dist/domain/test-types.d.ts +0 -16
- package/dist/engines/adapters/evidence-files.d.ts +0 -32
- package/dist/engines/adapters/evidence-identity.d.ts +0 -12
- package/dist/engines/adapters/execution.d.ts +0 -42
- package/dist/engines/adapters/native-report.d.ts +0 -25
- package/dist/engines/adapters/node-startup-cache.d.ts +0 -8
- package/dist/engines/adapters/workspace.d.ts +0 -4
- package/dist/engines/api/capabilities.d.ts +0 -31
- package/dist/engines/api/capabilities.js +0 -1
- package/dist/engines/api/evidence.d.ts +0 -38
- package/dist/engines/api/execution-observer.d.ts +0 -8
- package/dist/engines/api/execution-scope.d.ts +0 -17
- package/dist/engines/api/execution.d.ts +0 -101
- package/dist/engines/api/index.d.ts +0 -5
- package/dist/engines/api/k6-runtime-input.d.ts +0 -26
- package/dist/engines/api/k6-runtime-input.js +0 -1
- package/dist/engines/api/runtime-artifact.d.ts +0 -19
- package/dist/engines/bundle-cache.d.ts +0 -32
- package/dist/engines/catalog.d.ts +0 -27
- package/dist/engines/contracts/fixture-manifest.d.ts +0 -34
- package/dist/engines/contracts/json-bounds.d.ts +0 -36
- package/dist/engines/contracts/json-bounds.js +0 -2
- package/dist/engines/contracts/k6-repository-configuration.d.ts +0 -12
- package/dist/engines/contracts/k6-repository-configuration.js +0 -1
- package/dist/engines/contracts/test-context.d.ts +0 -15
- package/dist/engines/contracts/test-context.js +0 -1
- package/dist/engines/definitions.d.ts +0 -22
- package/dist/engines/factory.d.ts +0 -6
- package/dist/engines/generated-performance.d.ts +0 -1
- package/dist/engines/installation-catalog.d.ts +0 -27
- package/dist/engines/installation-catalog.js +0 -1
- package/dist/engines/installations/k6.d.ts +0 -98
- package/dist/engines/installations/k6.js +0 -1
- package/dist/engines/installations/node-vitest.d.ts +0 -33
- package/dist/engines/installations/package-requirements.d.ts +0 -28
- package/dist/engines/installations/package-resolution.d.ts +0 -51
- package/dist/engines/installations/playwright-resolution-child.d.ts +0 -1
- package/dist/engines/installations/playwright.d.ts +0 -75
- package/dist/engines/installations/types.d.ts +0 -10
- package/dist/engines/k6/adapter/bundle.d.ts +0 -25
- package/dist/engines/k6/adapter/bundle.js +0 -112
- package/dist/engines/k6/adapter/evidence.d.ts +0 -15
- package/dist/engines/k6/adapter/evidence.js +0 -4
- package/dist/engines/k6/adapter/executor.d.ts +0 -13
- package/dist/engines/k6/adapter/executor.js +0 -1
- package/dist/engines/k6/adapter/index.d.ts +0 -1
- package/dist/engines/k6/adapter/index.js +0 -1
- package/dist/engines/k6/adapter/input.d.ts +0 -21
- package/dist/engines/k6/adapter/input.js +0 -1
- package/dist/engines/k6/adapter/native-summary.d.ts +0 -11
- package/dist/engines/k6/adapter/native-summary.js +0 -1
- package/dist/engines/k6/adapter/repository-configuration.d.ts +0 -2
- package/dist/engines/k6/adapter/repository-configuration.js +0 -1
- package/dist/engines/k6/authoring-type-paths.d.ts +0 -3
- package/dist/engines/k6/authoring-type-paths.js +0 -1
- package/dist/engines/k6/runtime/ambient-types/bundle-manifest.json +0 -146
- package/dist/engines/k6/runtime/ambient-types/k6/LICENSE +0 -21
- package/dist/engines/k6/runtime/ambient-types/k6/browser/index.d.ts +0 -6332
- package/dist/engines/k6/runtime/ambient-types/k6/crypto/index.d.ts +0 -218
- package/dist/engines/k6/runtime/ambient-types/k6/data/index.d.ts +0 -16
- package/dist/engines/k6/runtime/ambient-types/k6/encoding/index.d.ts +0 -46
- package/dist/engines/k6/runtime/ambient-types/k6/execution/index.d.ts +0 -127
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/csv/index.d.ts +0 -96
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/fs/index.d.ts +0 -104
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/redis/index.d.ts +0 -821
- package/dist/engines/k6/runtime/ambient-types/k6/experimental/streams/index.d.ts +0 -198
- package/dist/engines/k6/runtime/ambient-types/k6/global.d.ts +0 -83
- package/dist/engines/k6/runtime/ambient-types/k6/html/index.d.ts +0 -1325
- package/dist/engines/k6/runtime/ambient-types/k6/http/index.d.ts +0 -806
- package/dist/engines/k6/runtime/ambient-types/k6/index.d.ts +0 -126
- package/dist/engines/k6/runtime/ambient-types/k6/metrics/index.d.ts +0 -66
- package/dist/engines/k6/runtime/ambient-types/k6/net/grpc/index.d.ts +0 -247
- package/dist/engines/k6/runtime/ambient-types/k6/options/index.d.ts +0 -459
- package/dist/engines/k6/runtime/ambient-types/k6/package.json +0 -79
- package/dist/engines/k6/runtime/ambient-types/k6/secrets/index.d.ts +0 -36
- package/dist/engines/k6/runtime/ambient-types/k6/timers/index.d.ts +0 -47
- package/dist/engines/k6/runtime/ambient-types/k6/websockets/index.d.ts +0 -324
- package/dist/engines/k6/runtime/ambient-types/k6/ws/index.d.ts +0 -283
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/LICENSE +0 -201
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/index.d.ts +0 -397
- package/dist/engines/k6/runtime/ambient-types/xk6-sql/package.json +0 -15
- package/dist/engines/k6/runtime/artifacts.d.ts +0 -2
- package/dist/engines/k6/runtime/artifacts.js +0 -1
- package/dist/engines/k6/runtime/checks.d.ts +0 -17
- package/dist/engines/k6/runtime/checks.js +0 -1
- package/dist/engines/k6/runtime/dal-fixtures.d.ts +0 -24
- package/dist/engines/k6/runtime/dal-fixtures.js +0 -1
- package/dist/engines/k6/runtime/dal-suite.d.ts +0 -24
- package/dist/engines/k6/runtime/dal-suite.js +0 -1
- package/dist/engines/k6/runtime/dal.d.ts +0 -10
- package/dist/engines/k6/runtime/dal.js +0 -1
- package/dist/engines/k6/runtime/fixtures.d.ts +0 -3
- package/dist/engines/k6/runtime/fixtures.js +0 -1
- package/dist/engines/k6/runtime/http-assertions.d.ts +0 -19
- package/dist/engines/k6/runtime/http-assertions.js +0 -1
- package/dist/engines/k6/runtime/http-checks.d.ts +0 -19
- package/dist/engines/k6/runtime/http-checks.js +0 -1
- package/dist/engines/k6/runtime/http-suite-runtime.d.ts +0 -103
- package/dist/engines/k6/runtime/http-suite-runtime.js +0 -1
- package/dist/engines/k6/runtime/http.d.ts +0 -15
- package/dist/engines/k6/runtime/http.js +0 -1
- package/dist/engines/k6/runtime/index.d.ts +0 -11
- package/dist/engines/k6/runtime/index.js +0 -1
- package/dist/engines/k6/runtime/input.d.ts +0 -3
- package/dist/engines/k6/runtime/input.js +0 -1
- package/dist/engines/k6/runtime/k6-repository-configuration.d.ts +0 -9
- package/dist/engines/k6/runtime/k6-repository-configuration.js +0 -1
- package/dist/engines/k6/runtime/node-setup.d.ts +0 -13
- package/dist/engines/k6/runtime/node-setup.js +0 -1
- package/dist/engines/k6/runtime/runtime-globals.d.ts +0 -10
- package/dist/engines/k6/runtime/runtime.d.ts +0 -54
- package/dist/engines/k6/runtime/runtime.js +0 -1
- package/dist/engines/k6/runtime/shared/assertion-details.d.ts +0 -19
- package/dist/engines/k6/runtime/shared/assertion-details.js +0 -2
- package/dist/engines/k6/runtime/shared/db-normalization.d.ts +0 -19
- package/dist/engines/k6/runtime/shared/db-normalization.js +0 -1
- package/dist/engines/k6/runtime/shared/error-body.d.ts +0 -3
- package/dist/engines/k6/runtime/shared/error-body.js +0 -1
- package/dist/engines/k6/runtime/shared/file-data.d.ts +0 -1
- package/dist/engines/k6/runtime/shared/file-data.js +0 -1
- package/dist/engines/k6/runtime/shared/fixture-engine.d.ts +0 -8
- package/dist/engines/k6/runtime/shared/fixture-engine.js +0 -2
- package/dist/engines/k6/runtime/shared/http-check-plan.d.ts +0 -29
- package/dist/engines/k6/runtime/shared/http-check-plan.js +0 -1
- package/dist/engines/k6/runtime/shared/http-parsing.d.ts +0 -10
- package/dist/engines/k6/runtime/shared/http-parsing.js +0 -3
- package/dist/engines/k6/runtime/shared/ordering.d.ts +0 -2
- package/dist/engines/k6/runtime/shared/ordering.js +0 -1
- package/dist/engines/k6/runtime/shared/properties.d.ts +0 -1
- package/dist/engines/k6/runtime/shared/properties.js +0 -1
- package/dist/engines/k6/runtime/suite.d.ts +0 -4
- package/dist/engines/k6/runtime/suite.js +0 -1
- package/dist/engines/k6/runtime/types.d.ts +0 -244
- package/dist/engines/k6/runtime/types.js +0 -1
- package/dist/engines/k6/runtime/xk6-sql-driver-postgres.d.ts +0 -7
- package/dist/engines/k6/runtime/xk6-sql-driver-postgres.js +0 -1
- package/dist/engines/managed-module-resolution-policy-input.d.ts +0 -9
- package/dist/engines/managed-module-resolution-policy.d.ts +0 -25
- package/dist/engines/managed-module-resolution.d.ts +0 -13
- package/dist/engines/manager.d.ts +0 -25
- package/dist/engines/node-vitest/adapter/adapter.d.ts +0 -16
- package/dist/engines/node-vitest/adapter/consumer-typescript-paths.d.ts +0 -17
- package/dist/engines/node-vitest/adapter/consumer-typescript-paths.js +0 -3
- package/dist/engines/node-vitest/adapter/evidence.d.ts +0 -33
- package/dist/engines/node-vitest/adapter/failure-details.d.ts +0 -3
- package/dist/engines/node-vitest/adapter/index.d.ts +0 -1
- package/dist/engines/node-vitest/adapter/reporter.d.ts +0 -7
- package/dist/engines/node-vitest/adapter/resolution.d.ts +0 -12
- package/dist/engines/node-vitest/adapter/resolution.js +0 -1
- package/dist/engines/node-vitest/adapter/workspace.d.ts +0 -19
- package/dist/engines/node-vitest/runtime/contract/index.d.ts +0 -64
- package/dist/engines/node-vitest/runtime/data/http.d.ts +0 -4
- package/dist/engines/node-vitest/runtime/data/index.d.ts +0 -8
- package/dist/engines/node-vitest/runtime/data/primitives.d.ts +0 -1
- package/dist/engines/node-vitest/runtime/data/report.d.ts +0 -3
- package/dist/engines/node-vitest/runtime/data/runner.d.ts +0 -4
- package/dist/engines/node-vitest/runtime/data/scenario.d.ts +0 -12
- package/dist/engines/node-vitest/runtime/data/types.d.ts +0 -412
- package/dist/engines/node-vitest/runtime/runtime-input.d.ts +0 -64
- package/dist/engines/playwright/adapter/adapter.d.ts +0 -18
- package/dist/engines/playwright/adapter/attachments.d.ts +0 -26
- package/dist/engines/playwright/adapter/config.d.ts +0 -45
- package/dist/engines/playwright/adapter/evidence-validation.d.ts +0 -12
- package/dist/engines/playwright/adapter/evidence.d.ts +0 -32
- package/dist/engines/playwright/adapter/failure-details.d.ts +0 -2
- package/dist/engines/playwright/adapter/index.d.ts +0 -3
- package/dist/engines/playwright/adapter/reporter.d.ts +0 -12
- package/dist/engines/playwright/runtime/config-file.d.ts +0 -2
- package/dist/engines/playwright/runtime/config.d.ts +0 -24
- package/dist/engines/playwright/runtime/index.d.ts +0 -4
- package/dist/engines/playwright/runtime/runtime-input.d.ts +0 -36
- package/dist/engines/playwright/runtime/sandbox.d.ts +0 -84
- package/dist/engines/runtime-input-file.d.ts +0 -27
- package/dist/environment/lifecycle-artifacts.d.ts +0 -7
- package/dist/environment/lifecycle-controller.d.ts +0 -70
- package/dist/environment/lifecycle.d.ts +0 -29
- package/dist/environment/maintenance.d.ts +0 -68
- package/dist/environment/planning-types.d.ts +0 -35
- package/dist/environment/readiness.d.ts +0 -12
- package/dist/environment/readiness.js +0 -1
- package/dist/environment/ready-environment.d.ts +0 -19
- package/dist/environment/run-environment.d.ts +0 -38
- package/dist/environment/run-stopping.d.ts +0 -13
- package/dist/environment/runtime-contexts.d.ts +0 -33
- package/dist/environment/runtime-manager.d.ts +0 -95
- package/dist/environment/runtime-planning.d.ts +0 -16
- package/dist/environment/runtime-preparation.d.ts +0 -30
- package/dist/environment/runtime-service.d.ts +0 -18
- package/dist/environment/services.d.ts +0 -48
- package/dist/environment/state.d.ts +0 -18
- package/dist/environment/status-runtime.d.ts +0 -53
- package/dist/environment/template.d.ts +0 -180
- package/dist/evidence/artifact-config.d.ts +0 -14
- package/dist/evidence/artifact-validation.d.ts +0 -5
- package/dist/evidence/artifacts.d.ts +0 -75
- package/dist/evidence/bundles.d.ts +0 -27
- package/dist/evidence/ci-provenance.d.ts +0 -9
- package/dist/evidence/contracts.d.ts +0 -154
- package/dist/evidence/file-evidence.d.ts +0 -23
- package/dist/evidence/finalization.d.ts +0 -9
- package/dist/evidence/index.d.ts +0 -8
- package/dist/evidence/logs.d.ts +0 -31
- package/dist/evidence/operation-timings.d.ts +0 -60
- package/dist/evidence/read-bundle.d.ts +0 -4
- package/dist/evidence/read-fields.d.ts +0 -22
- package/dist/evidence/read-provenance.d.ts +0 -2
- package/dist/evidence/read-redaction.d.ts +0 -2
- package/dist/evidence/read-retention.d.ts +0 -2
- package/dist/evidence/read-run.d.ts +0 -2
- package/dist/evidence/reading.d.ts +0 -28
- package/dist/evidence/reporting-types.d.ts +0 -330
- package/dist/evidence/reporting.d.ts +0 -3
- package/dist/evidence/secure-file-copy.d.ts +0 -24
- package/dist/evidence/setup-progress.d.ts +0 -63
- package/dist/evidence/step-output.d.ts +0 -16
- package/dist/evidence/storage-inventory.d.ts +0 -27
- package/dist/evidence/storage.d.ts +0 -27
- package/dist/evidence/timing.d.ts +0 -23
- package/dist/file.d.ts +0 -11
- package/dist/index.d.ts +0 -4
- package/dist/kernel/error-serialization.d.ts +0 -38
- package/dist/kernel/redaction.d.ts +0 -2
- package/dist/kernel/unknown-values.d.ts +0 -6
- package/dist/kernel/work-metrics.d.ts +0 -6
- package/dist/process/capture-output.d.ts +0 -7
- package/dist/process/command-shell.d.ts +0 -1
- package/dist/process/environment-overlay.d.ts +0 -17
- package/dist/process/environment.d.ts +0 -33
- package/dist/process/files/contained-path.d.ts +0 -8
- package/dist/process/files/directory-status.d.ts +0 -14
- package/dist/process/files/dotenv.d.ts +0 -2
- package/dist/process/files/file-snapshot.d.ts +0 -34
- package/dist/process/files/json-file.d.ts +0 -12
- package/dist/process/files/paths.d.ts +0 -1
- package/dist/process/files/product-dir.d.ts +0 -1
- package/dist/process/files/temp-dir.d.ts +0 -11
- package/dist/process/host/metadata.d.ts +0 -6
- package/dist/process/host/platform.d.ts +0 -57
- package/dist/process/host-command.d.ts +0 -4
- package/dist/process/host-inspection-command.d.ts +0 -13
- package/dist/process/host-process.d.ts +0 -19
- package/dist/process/index.d.ts +0 -9
- package/dist/process/lifecycle-fence.d.ts +0 -11
- package/dist/process/locks.d.ts +0 -28
- package/dist/process/process-contracts.d.ts +0 -78
- package/dist/process/process-group.d.ts +0 -12
- package/dist/process/process-identity.d.ts +0 -27
- package/dist/process/process-limits.d.ts +0 -6
- package/dist/process/process.d.ts +0 -12
- package/dist/process/readiness.d.ts +0 -37
- package/dist/process/recovery.d.ts +0 -3
- package/dist/process/runs/inspection.d.ts +0 -5
- package/dist/process/runs/manifest.d.ts +0 -86
- package/dist/process/runs/ownership.d.ts +0 -11
- package/dist/process/runs/product-state.d.ts +0 -2
- package/dist/process/runs/schema.d.ts +0 -3
- package/dist/process/runs/stop.d.ts +0 -19
- package/dist/process/runtime-socket.d.ts +0 -4
- package/dist/process/service-processes.d.ts +0 -13
- package/dist/process/shutdown.d.ts +0 -10
- package/dist/process/windows-cli-owner.d.ts +0 -2
- package/dist/process/windows-native.d.ts +0 -6
- package/dist/process/windows-process-identity.d.ts +0 -4
- package/dist/repo/ci-environment.d.ts +0 -7
- package/dist/repo/fingerprint-policy.d.ts +0 -15
- package/dist/repo/git-path.d.ts +0 -2
- package/dist/repo/history.d.ts +0 -17
- package/dist/repo/managed-git.d.ts +0 -10
- package/dist/repo/metadata.d.ts +0 -3
- package/dist/repo/physical-tree.d.ts +0 -37
- package/dist/repo/remote.d.ts +0 -6
- package/dist/repo/state.d.ts +0 -26
- package/dist/repo/tree-listing.d.ts +0 -10
- package/dist/steps/build-config.d.ts +0 -35
- package/dist/steps/configured-step-testkit-modules.d.ts +0 -19
- package/dist/steps/configured-steps.d.ts +0 -51
- package/dist/steps/environment.d.ts +0 -84
- package/dist/steps/index.d.ts +0 -2
- package/dist/steps/module-runner.d.ts +0 -1
- package/dist/steps/run.d.ts +0 -36
- package/dist/toolchains/archive.d.ts +0 -53
- package/dist/toolchains/esbuild.d.ts +0 -9
- package/dist/toolchains/host-node-support.d.ts +0 -3
- package/dist/toolchains/index.d.ts +0 -114
- package/dist/toolchains/managed-node-releases.d.ts +0 -28
- package/dist/toolchains/node-cache.d.ts +0 -20
- package/dist/toolchains/node-integrity.d.ts +0 -18
- package/dist/toolchains/node-provisioning.d.ts +0 -29
- package/dist/toolchains/semver.d.ts +0 -13
- package/dist/toolchains/shared-operation.d.ts +0 -11
- package/dist/toolchains/timeouts.d.ts +0 -1
- package/dist/toolchains/vitest/index.d.ts +0 -13
- package/dist/tracker/gitea.d.ts +0 -14
- package/dist/tracker/github.d.ts +0 -14
- package/dist/tracker/http.d.ts +0 -33
- package/dist/tracker/index.d.ts +0 -4
- package/dist/tracker/redaction.d.ts +0 -4
- package/dist/tracker/requests.d.ts +0 -17
- package/dist/tracker/responses.d.ts +0 -24
- package/dist/tracker/types.d.ts +0 -51
- package/docs/engine-architecture.md +0 -654
- /package/dist/engines/{k6/runtime/runtime-globals.js → api/profiles.js} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { expect } from 'vitest';
|
|
2
|
+
|
|
3
|
+
export interface HttpMethods<Response, Extra extends unknown[]> {
|
|
4
|
+
get: (path: string, ...extra: Extra) => Response;
|
|
5
|
+
delete: (path: string, body?: unknown, ...extra: Extra) => Response;
|
|
6
|
+
post: (path: string, body?: unknown, ...extra: Extra) => Response;
|
|
7
|
+
put: (path: string, body?: unknown, ...extra: Extra) => Response;
|
|
8
|
+
patch: (path: string, body?: unknown, ...extra: Extra) => Response;
|
|
9
|
+
}
|
|
10
|
+
export interface ContractScenarioOptions {
|
|
11
|
+
timeout?: number;
|
|
12
|
+
timeoutMs?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface ContractHttpRequestOptions extends Record<string, unknown> {
|
|
15
|
+
contentTypeJson?: boolean;
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
}
|
|
18
|
+
export interface ContractHttpResponse {
|
|
19
|
+
body: string;
|
|
20
|
+
headers: Record<string, string>;
|
|
21
|
+
json(): unknown;
|
|
22
|
+
method: string;
|
|
23
|
+
path: string;
|
|
24
|
+
status: number;
|
|
25
|
+
url: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ContractHttpClientOptions {
|
|
28
|
+
baseUrl?: string;
|
|
29
|
+
defaultHeaders?: Record<string, string>;
|
|
30
|
+
}
|
|
31
|
+
export interface ContractHttpClient extends HttpMethods<Promise<ContractHttpResponse>, [
|
|
32
|
+
headers?: Record<string, string>,
|
|
33
|
+
options?: ContractHttpRequestOptions
|
|
34
|
+
]> {
|
|
35
|
+
baseUrl: string;
|
|
36
|
+
request(method: string, path: string, body?: unknown, headers?: Record<string, string>, options?: ContractHttpRequestOptions): Promise<ContractHttpResponse>;
|
|
37
|
+
}
|
|
38
|
+
export interface ContractFixture {
|
|
39
|
+
buffer(): Buffer;
|
|
40
|
+
contentType: string;
|
|
41
|
+
filename: string;
|
|
42
|
+
json(): unknown;
|
|
43
|
+
path: string;
|
|
44
|
+
sha256: string;
|
|
45
|
+
sizeBytes: number;
|
|
46
|
+
text(encoding?: BufferEncoding): string;
|
|
47
|
+
}
|
|
48
|
+
export interface ContractRuntimeContext extends Record<string, unknown> {
|
|
49
|
+
baseUrl?: string | null;
|
|
50
|
+
engineId?: "node-vitest";
|
|
51
|
+
readonly env: Readonly<Record<string, string>>;
|
|
52
|
+
profileId?: "node-vitest-contract";
|
|
53
|
+
serviceName?: string;
|
|
54
|
+
task?: {
|
|
55
|
+
file?: string;
|
|
56
|
+
id?: number | string;
|
|
57
|
+
suiteName?: string;
|
|
58
|
+
testType: "contract";
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface ContractScenarioContext extends ContractRuntimeContext {
|
|
62
|
+
fixture(name: string): ContractFixture;
|
|
63
|
+
http(options?: ContractHttpClientOptions): ContractHttpClient;
|
|
64
|
+
}
|
|
65
|
+
export type ContractScenarioRun = (context: ContractScenarioContext) => unknown;
|
|
66
|
+
export declare function contractScenario(name: string, run: ContractScenarioRun): void;
|
|
67
|
+
export declare function contractScenario(name: string, options: ContractScenarioOptions, run: ContractScenarioRun): void;
|
|
68
|
+
export declare function readContractContext(): ContractRuntimeContext;
|
|
69
|
+
export declare function createHttpClient(options?: Readonly<ContractHttpClientOptions>): ContractHttpClient;
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
expect,
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export {};
|
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
import { TestContext, expect } from 'vitest';
|
|
2
|
+
|
|
3
|
+
export type RuntimeMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
4
|
+
export interface RuntimeHeaders {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
}
|
|
7
|
+
export interface RuntimeCookie {
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
export interface RuntimeEnv {
|
|
11
|
+
BASE: string;
|
|
12
|
+
rawEnv?: Record<string, string | undefined>;
|
|
13
|
+
}
|
|
14
|
+
export interface HttpRequestParams {
|
|
15
|
+
[key: string]: unknown;
|
|
16
|
+
headers?: RuntimeHeaders;
|
|
17
|
+
}
|
|
18
|
+
export type HttpProfileEnvironment = Readonly<Record<string, string | undefined>>;
|
|
19
|
+
export interface HttpProfileEnv {
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
BASE?: string;
|
|
22
|
+
rawEnv?: HttpProfileEnvironment;
|
|
23
|
+
}
|
|
24
|
+
export type HttpProfileResolvedEnv = HttpProfileEnv & RuntimeEnv;
|
|
25
|
+
export interface HttpProfileHeaderContext {
|
|
26
|
+
actor?: string | null;
|
|
27
|
+
env?: HttpProfileEnv;
|
|
28
|
+
}
|
|
29
|
+
export type HttpProfileHeaderBuilder<TSetup = unknown> = (setupData: TSetup | null, context?: HttpProfileHeaderContext & {
|
|
30
|
+
env: HttpProfileResolvedEnv;
|
|
31
|
+
}) => RuntimeHeaders | undefined;
|
|
32
|
+
/** Response shape the in-process profile setup client resolves to. */
|
|
33
|
+
export interface HttpProfileResponse {
|
|
34
|
+
body: string;
|
|
35
|
+
cookies?: Record<string, RuntimeCookie[] | undefined>;
|
|
36
|
+
headers?: Record<string, string>;
|
|
37
|
+
status: number;
|
|
38
|
+
}
|
|
39
|
+
export type HttpProfileRequestMethod = "del" | "get" | "patch" | "post" | "put";
|
|
40
|
+
/** HTTP verbs an execution engine hands to a profile's setup step. */
|
|
41
|
+
export type HttpProfileRequestClient<TResult = Promise<HttpProfileResponse>> = {
|
|
42
|
+
[Method in HttpProfileRequestMethod]: Method extends "get" ? (url: string, params?: HttpRequestParams) => TResult : (url: string, body?: unknown, params?: HttpRequestParams) => TResult;
|
|
43
|
+
};
|
|
44
|
+
export interface HttpProfileSetupContext {
|
|
45
|
+
env: HttpProfileResolvedEnv;
|
|
46
|
+
http: HttpProfileRequestClient;
|
|
47
|
+
json(response: unknown): unknown;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Explicit, test-owned authentication for a named HTTP profile. The data
|
|
51
|
+
* profile runs `setup` or `setupAsync` once and passes the
|
|
52
|
+
* result to `headers` for every request.
|
|
53
|
+
*/
|
|
54
|
+
export interface HttpProfileAuth<TSetup = unknown> {
|
|
55
|
+
headers?: HttpProfileHeaderBuilder<TSetup>;
|
|
56
|
+
setup?(context: HttpProfileSetupContext): TSetup;
|
|
57
|
+
setupAsync?(context: HttpProfileSetupContext): Promise<TSetup>;
|
|
58
|
+
}
|
|
59
|
+
export interface HttpMethods<Response, Extra extends unknown[]> {
|
|
60
|
+
get: (path: string, ...extra: Extra) => Response;
|
|
61
|
+
delete: (path: string, body?: unknown, ...extra: Extra) => Response;
|
|
62
|
+
post: (path: string, body?: unknown, ...extra: Extra) => Response;
|
|
63
|
+
put: (path: string, body?: unknown, ...extra: Extra) => Response;
|
|
64
|
+
patch: (path: string, body?: unknown, ...extra: Extra) => Response;
|
|
65
|
+
}
|
|
66
|
+
declare const DATA_ARTIFACT_KIND = "testkit.data-flow";
|
|
67
|
+
declare const DATA_SCHEMA_VERSION = 1;
|
|
68
|
+
export type DataFindingSeverity = "error" | "info" | "waste" | "watch";
|
|
69
|
+
export type DataMetricBudgetOperator = "<" | "<=" | "==" | ">" | ">=" | "exists";
|
|
70
|
+
export type DataSequenceBudgetOperator = "exists" | "sequence==" | "sequenceOnly";
|
|
71
|
+
export interface DataScenarioOptions {
|
|
72
|
+
description?: string;
|
|
73
|
+
timeout?: number;
|
|
74
|
+
timeoutMs?: number;
|
|
75
|
+
}
|
|
76
|
+
export interface DataMetricOptions {
|
|
77
|
+
description?: string;
|
|
78
|
+
dimensions?: Record<string, unknown>;
|
|
79
|
+
kind?: string;
|
|
80
|
+
unit?: string;
|
|
81
|
+
}
|
|
82
|
+
export interface DataSequenceOptions {
|
|
83
|
+
description?: string;
|
|
84
|
+
dimensions?: Record<string, unknown>;
|
|
85
|
+
}
|
|
86
|
+
export interface DataEvidenceDetails extends Record<string, unknown> {
|
|
87
|
+
status?: string;
|
|
88
|
+
}
|
|
89
|
+
export interface DataBudgetOptions {
|
|
90
|
+
message?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface DataMetricBudget {
|
|
93
|
+
atLeast(value: number, options?: DataBudgetOptions): this;
|
|
94
|
+
atMost(value: number, options?: DataBudgetOptions): this;
|
|
95
|
+
equals(value: number, options?: DataBudgetOptions): this;
|
|
96
|
+
greaterThan(value: number, options?: DataBudgetOptions): this;
|
|
97
|
+
lessThan(value: number, options?: DataBudgetOptions): this;
|
|
98
|
+
required(options?: DataBudgetOptions): this;
|
|
99
|
+
}
|
|
100
|
+
export interface DataSequenceBudget {
|
|
101
|
+
equals(values: readonly unknown[], options?: DataBudgetOptions): this;
|
|
102
|
+
includesOnly(values: readonly unknown[], options?: DataBudgetOptions): this;
|
|
103
|
+
required(options?: DataBudgetOptions): this;
|
|
104
|
+
}
|
|
105
|
+
export interface DataFixture {
|
|
106
|
+
buffer(): Buffer;
|
|
107
|
+
contentType: string;
|
|
108
|
+
filename: string;
|
|
109
|
+
json(): unknown;
|
|
110
|
+
path: string;
|
|
111
|
+
sha256: string;
|
|
112
|
+
sizeBytes: number;
|
|
113
|
+
text(encoding?: BufferEncoding): string;
|
|
114
|
+
}
|
|
115
|
+
export interface DataHttpResponse {
|
|
116
|
+
body: string;
|
|
117
|
+
cookies: Record<string, Array<{
|
|
118
|
+
value: string;
|
|
119
|
+
}>>;
|
|
120
|
+
durationMs: number;
|
|
121
|
+
headers: Record<string, string>;
|
|
122
|
+
json(): unknown;
|
|
123
|
+
method: string;
|
|
124
|
+
path: string;
|
|
125
|
+
status: number;
|
|
126
|
+
url: string;
|
|
127
|
+
}
|
|
128
|
+
export interface DataHttpRequestOptions {
|
|
129
|
+
contentTypeJson?: boolean;
|
|
130
|
+
signal?: AbortSignal;
|
|
131
|
+
}
|
|
132
|
+
export interface DataActorSession {
|
|
133
|
+
[key: string]: unknown;
|
|
134
|
+
actorIndex?: number;
|
|
135
|
+
email?: string | null;
|
|
136
|
+
name?: string | null;
|
|
137
|
+
organizationKey?: string | null;
|
|
138
|
+
organizationName?: string | null;
|
|
139
|
+
session?: Record<string, unknown> | null;
|
|
140
|
+
}
|
|
141
|
+
export interface DataSessionBundle {
|
|
142
|
+
actors: Record<string, DataActorSession | undefined>;
|
|
143
|
+
primaryActor: string | null;
|
|
144
|
+
}
|
|
145
|
+
export interface DataHttpHeaderContext {
|
|
146
|
+
actor: DataActorSession | null;
|
|
147
|
+
actorName: string | null;
|
|
148
|
+
sessionBundle: DataSessionBundle | null;
|
|
149
|
+
}
|
|
150
|
+
export type DataHttpHeaderBuilder = (context: DataHttpHeaderContext) => Record<string, string>;
|
|
151
|
+
export interface DataHttpClientOptions {
|
|
152
|
+
baseUrl?: string;
|
|
153
|
+
defaultActor?: string;
|
|
154
|
+
defaultHeaders?: Record<string, string>;
|
|
155
|
+
getHeaders?: DataHttpHeaderBuilder;
|
|
156
|
+
getRawHeaders?: DataHttpHeaderBuilder;
|
|
157
|
+
profile?: string;
|
|
158
|
+
recorder?: DataHttpRecorder;
|
|
159
|
+
sessionBundle?: DataSessionBundle;
|
|
160
|
+
trace?: DataHttpRecorder;
|
|
161
|
+
}
|
|
162
|
+
export interface DataHttpRequest {
|
|
163
|
+
(method: string, path: string, body?: unknown, headers?: Record<string, string>, options?: DataHttpRequestOptions): Promise<DataHttpResponse>;
|
|
164
|
+
}
|
|
165
|
+
export type DataActorRawRequest = DataHttpRequest & HttpMethods<Promise<DataHttpResponse>, [
|
|
166
|
+
headers?: Record<string, string>,
|
|
167
|
+
options?: DataHttpRequestOptions
|
|
168
|
+
]>;
|
|
169
|
+
export interface DataRootRawRequest extends DataHttpRequest, Pick<HttpMethods<Promise<DataHttpResponse>, [
|
|
170
|
+
headers?: Record<string, string>,
|
|
171
|
+
options?: DataHttpRequestOptions
|
|
172
|
+
]>, "get" | "post"> {
|
|
173
|
+
as(actorName: string): DataActorRawRequest;
|
|
174
|
+
}
|
|
175
|
+
export interface DataHttpMethods extends HttpMethods<Promise<DataHttpResponse>, [
|
|
176
|
+
headers?: Record<string, string>,
|
|
177
|
+
options?: DataHttpRequestOptions
|
|
178
|
+
]> {
|
|
179
|
+
headers(extraHeaders?: Record<string, string>): Record<string, string>;
|
|
180
|
+
rawHeaders(extraHeaders?: Record<string, string>): Record<string, string>;
|
|
181
|
+
request(method: string, path: string, body?: unknown, headers?: Record<string, string>, options?: DataHttpRequestOptions): Promise<DataHttpResponse>;
|
|
182
|
+
}
|
|
183
|
+
export interface DataActorHttpClient extends DataHttpMethods {
|
|
184
|
+
raw: DataActorRawRequest;
|
|
185
|
+
rawReq: DataActorRawRequest;
|
|
186
|
+
}
|
|
187
|
+
export interface DataHttpActor {
|
|
188
|
+
email: string | null;
|
|
189
|
+
headers: Record<string, string>;
|
|
190
|
+
index: number;
|
|
191
|
+
key: string;
|
|
192
|
+
name: string | null;
|
|
193
|
+
organizationKey: string | null;
|
|
194
|
+
organizationName: string | null;
|
|
195
|
+
rawHeaders: Record<string, string>;
|
|
196
|
+
rawReq: DataActorRawRequest;
|
|
197
|
+
req: DataActorHttpClient;
|
|
198
|
+
session: Record<string, unknown> | null;
|
|
199
|
+
}
|
|
200
|
+
export interface DataHttpActors {
|
|
201
|
+
get(name: string): DataHttpActor;
|
|
202
|
+
has(name: string): boolean;
|
|
203
|
+
list(): DataHttpActor[];
|
|
204
|
+
names: string[];
|
|
205
|
+
primary: DataHttpActor | null;
|
|
206
|
+
}
|
|
207
|
+
export interface DataHttpClient extends DataHttpMethods {
|
|
208
|
+
actor?: DataHttpActor | null;
|
|
209
|
+
actors?: DataHttpActors;
|
|
210
|
+
as(actorName: string): DataActorHttpClient;
|
|
211
|
+
baseUrl: string;
|
|
212
|
+
env?: HttpProfileEnv;
|
|
213
|
+
raw: DataRootRawRequest;
|
|
214
|
+
rawReq: DataRootRawRequest;
|
|
215
|
+
}
|
|
216
|
+
export interface DataHttpRequestRecord {
|
|
217
|
+
bodyBytes?: number;
|
|
218
|
+
durationMs?: number;
|
|
219
|
+
method: string;
|
|
220
|
+
path: string;
|
|
221
|
+
requestHeaders?: Record<string, string>;
|
|
222
|
+
responseBytes?: number;
|
|
223
|
+
status?: number;
|
|
224
|
+
}
|
|
225
|
+
export interface DataHttpRecorder {
|
|
226
|
+
recordHttpRequest(entry: DataHttpRequestRecord): unknown;
|
|
227
|
+
}
|
|
228
|
+
export interface DataExternalCallDetails extends DataEvidenceDetails {
|
|
229
|
+
costMinor?: number;
|
|
230
|
+
durationMs?: number;
|
|
231
|
+
requestBytes?: number;
|
|
232
|
+
responseBytes?: number;
|
|
233
|
+
}
|
|
234
|
+
export interface DataFlow extends DataHttpRecorder {
|
|
235
|
+
addFinding(severity: string, message: string, details?: Record<string, unknown>): this;
|
|
236
|
+
actor(name: string, details?: DataEvidenceDetails): this;
|
|
237
|
+
budget(metricName: string): DataMetricBudget;
|
|
238
|
+
bytes(name: string, value: number, options?: DataMetricOptions): this;
|
|
239
|
+
count(name: string, value?: number, options?: DataMetricOptions): this;
|
|
240
|
+
duration(name: string, value: number, options?: DataMetricOptions): this;
|
|
241
|
+
event(name: string, details?: Record<string, unknown>): this;
|
|
242
|
+
expectMetric(metricName: string): DataMetricBudget;
|
|
243
|
+
expectSequence(sequenceName: string): DataSequenceBudget;
|
|
244
|
+
externalCall(name: string, details?: DataExternalCallDetails): this;
|
|
245
|
+
finding(severity: string, message: string, details?: Record<string, unknown>): this;
|
|
246
|
+
metric(name: string, value: number, options?: DataMetricOptions): this;
|
|
247
|
+
money(name: string, value: number, options?: DataMetricOptions): this;
|
|
248
|
+
ratio(name: string, value: number, options?: DataMetricOptions): this;
|
|
249
|
+
reconcile(name: string, details?: DataEvidenceDetails): this;
|
|
250
|
+
record(name: string, details?: DataEvidenceDetails & {
|
|
251
|
+
count?: number;
|
|
252
|
+
}): this;
|
|
253
|
+
recordHttpRequest(entry: DataHttpRequestRecord): this;
|
|
254
|
+
recordCache(name: string, values?: {
|
|
255
|
+
hits?: number;
|
|
256
|
+
misses?: number;
|
|
257
|
+
reads?: number;
|
|
258
|
+
writes?: number;
|
|
259
|
+
}): this;
|
|
260
|
+
recordLlmUsage(name: string, usage?: Record<string, number>): this;
|
|
261
|
+
recordRpc(name: string, entry?: {
|
|
262
|
+
method?: string;
|
|
263
|
+
requestBytes?: number;
|
|
264
|
+
responseBytes?: number;
|
|
265
|
+
}): this;
|
|
266
|
+
sequence(name: string, values: unknown, options?: DataSequenceOptions): this;
|
|
267
|
+
sequenceBudget(sequenceName: string): DataSequenceBudget;
|
|
268
|
+
system(name: string, details?: DataEvidenceDetails): this;
|
|
269
|
+
transition(name: string, details?: DataEvidenceDetails): this;
|
|
270
|
+
}
|
|
271
|
+
export interface DataScenarioContext extends DataFlow, DataRuntimeContext {
|
|
272
|
+
fixture(name: string): DataFixture;
|
|
273
|
+
http(options?: DataHttpProfileOptions): Promise<DataHttpClient>;
|
|
274
|
+
}
|
|
275
|
+
export interface DataRuntimeContext extends Record<string, unknown> {
|
|
276
|
+
baseUrl?: string | null;
|
|
277
|
+
engineId?: "node-vitest";
|
|
278
|
+
readonly env: Readonly<Record<string, string>>;
|
|
279
|
+
profileId?: "node-vitest-data";
|
|
280
|
+
serviceName?: string;
|
|
281
|
+
task?: {
|
|
282
|
+
file?: string;
|
|
283
|
+
id?: number | string;
|
|
284
|
+
suiteName?: string;
|
|
285
|
+
testType: "data";
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
export type DataHttpProfileAuth = HttpProfileAuth<DataSessionBundle>;
|
|
289
|
+
export interface DataHttpProfileOptions extends DataHttpClientOptions {
|
|
290
|
+
auth?: DataHttpProfileAuth | null;
|
|
291
|
+
env?: HttpProfileEnv;
|
|
292
|
+
headers?: HttpProfileHeaderBuilder<DataSessionBundle>;
|
|
293
|
+
rawHeaders?: HttpProfileHeaderBuilder<DataSessionBundle>;
|
|
294
|
+
}
|
|
295
|
+
export interface DataMetric {
|
|
296
|
+
aggregation?: string;
|
|
297
|
+
description: string | null;
|
|
298
|
+
dimensions: Record<string, unknown>;
|
|
299
|
+
intervalMs?: number | null;
|
|
300
|
+
kind: string;
|
|
301
|
+
name: string;
|
|
302
|
+
unit: string | null;
|
|
303
|
+
value: number;
|
|
304
|
+
}
|
|
305
|
+
export interface DataSequence {
|
|
306
|
+
description: string | null;
|
|
307
|
+
dimensions: Record<string, unknown>;
|
|
308
|
+
name: string;
|
|
309
|
+
values: string[];
|
|
310
|
+
}
|
|
311
|
+
export interface DataEvidence {
|
|
312
|
+
atMs: number;
|
|
313
|
+
details: unknown;
|
|
314
|
+
kind: string;
|
|
315
|
+
name: string;
|
|
316
|
+
status: string | null;
|
|
317
|
+
}
|
|
318
|
+
export interface DataEvent {
|
|
319
|
+
atMs: number;
|
|
320
|
+
details: unknown;
|
|
321
|
+
name: string;
|
|
322
|
+
}
|
|
323
|
+
export interface DataFinding {
|
|
324
|
+
details: unknown;
|
|
325
|
+
message: string;
|
|
326
|
+
severity: DataFindingSeverity;
|
|
327
|
+
}
|
|
328
|
+
export interface SerializedDataError {
|
|
329
|
+
message: string;
|
|
330
|
+
name: string;
|
|
331
|
+
stack: string | null;
|
|
332
|
+
}
|
|
333
|
+
export interface DataMetricBudgetInput {
|
|
334
|
+
expected?: number;
|
|
335
|
+
message: string | null;
|
|
336
|
+
metricKey?: string | null;
|
|
337
|
+
name: string;
|
|
338
|
+
operator: DataMetricBudgetOperator;
|
|
339
|
+
target: "metric";
|
|
340
|
+
}
|
|
341
|
+
export interface DataSequenceBudgetInput {
|
|
342
|
+
expected?: unknown[];
|
|
343
|
+
message: string | null;
|
|
344
|
+
name: string;
|
|
345
|
+
operator: DataSequenceBudgetOperator;
|
|
346
|
+
target: "sequence";
|
|
347
|
+
}
|
|
348
|
+
export interface DataBudgetResultBase {
|
|
349
|
+
actual: number | string[] | null;
|
|
350
|
+
message: string;
|
|
351
|
+
status: "failed" | "passed";
|
|
352
|
+
}
|
|
353
|
+
export type DataBudgetResult = (Omit<DataMetricBudgetInput, "expected" | "message"> & DataBudgetResultBase & {
|
|
354
|
+
expected: number | null;
|
|
355
|
+
}) | (Omit<DataSequenceBudgetInput, "expected" | "message"> & DataBudgetResultBase & {
|
|
356
|
+
expected: unknown[] | null;
|
|
357
|
+
});
|
|
358
|
+
export interface DataScenarioReport {
|
|
359
|
+
budgetFailures: DataBudgetResult[];
|
|
360
|
+
budgets: DataBudgetResult[];
|
|
361
|
+
description: string | null;
|
|
362
|
+
durationMs: number;
|
|
363
|
+
error: SerializedDataError | null;
|
|
364
|
+
events: DataEvent[];
|
|
365
|
+
evidence: DataEvidence[];
|
|
366
|
+
findings: DataFinding[];
|
|
367
|
+
location: {
|
|
368
|
+
column?: number;
|
|
369
|
+
line?: number;
|
|
370
|
+
path: string;
|
|
371
|
+
};
|
|
372
|
+
metrics: DataMetric[];
|
|
373
|
+
name: string;
|
|
374
|
+
sequences: DataSequence[];
|
|
375
|
+
status: "failed" | "passed";
|
|
376
|
+
}
|
|
377
|
+
export interface DataFlowReport {
|
|
378
|
+
file: string | null;
|
|
379
|
+
generatedAt: string;
|
|
380
|
+
kind: typeof DATA_ARTIFACT_KIND;
|
|
381
|
+
scenarios: DataScenarioReport[];
|
|
382
|
+
schemaVersion: typeof DATA_SCHEMA_VERSION;
|
|
383
|
+
summary: {
|
|
384
|
+
budgetFailures: number;
|
|
385
|
+
failed: number;
|
|
386
|
+
findingCounts: Record<DataFindingSeverity, number>;
|
|
387
|
+
passed: number;
|
|
388
|
+
scenarios: number;
|
|
389
|
+
status: "failed" | "passed";
|
|
390
|
+
};
|
|
391
|
+
summaryText: string;
|
|
392
|
+
taskId: string | null;
|
|
393
|
+
}
|
|
394
|
+
export declare function createHttpClient(options?: DataHttpClientOptions): DataHttpClient;
|
|
395
|
+
export declare function readDataContext(): DataRuntimeContext;
|
|
396
|
+
export declare function renderDataFlowMarkdown(report: DataFlowReport): string;
|
|
397
|
+
export declare function dataScenario(name: string, run: (context: DataScenarioContext) => unknown): void;
|
|
398
|
+
export declare function dataScenario(name: string, options: DataScenarioOptions, run: (context: DataScenarioContext) => unknown): void;
|
|
399
|
+
export declare function dataFlow(context: TestContext): DataFlow;
|
|
400
|
+
export declare function measureJsonBytes(value: unknown): number;
|
|
401
|
+
export declare function stableHash(value: unknown): string;
|
|
402
|
+
|
|
403
|
+
export {
|
|
404
|
+
expect,
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
export {};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { APIRequest, APIRequestContext, Page, PlaywrightTestConfig } from '@playwright/test';
|
|
2
|
+
|
|
3
|
+
export type JsonPrimitive = boolean | null | number | string;
|
|
4
|
+
export type JsonValue = JsonPrimitive | readonly JsonValue[] | JsonObject;
|
|
5
|
+
export interface JsonObject {
|
|
6
|
+
readonly [key: string]: JsonValue;
|
|
7
|
+
}
|
|
8
|
+
export interface PlaywrightTestContext {
|
|
9
|
+
readonly baseUrl: null | string;
|
|
10
|
+
readonly databases: Readonly<Record<string, string>>;
|
|
11
|
+
readonly endpoints: Readonly<Record<string, string>>;
|
|
12
|
+
readonly env: Readonly<Record<string, string>>;
|
|
13
|
+
readonly fixtures: JsonObject;
|
|
14
|
+
readonly handles: Readonly<Record<string, JsonObject>>;
|
|
15
|
+
readonly managed: true;
|
|
16
|
+
readonly setupData?: JsonValue;
|
|
17
|
+
readonly uiConfig: JsonObject;
|
|
18
|
+
}
|
|
19
|
+
export declare function readPlaywrightContext(): PlaywrightTestContext | null;
|
|
20
|
+
export type DefinedTestkitPlaywrightConfig<TestArgs = object, WorkerArgs = object> = Omit<PlaywrightTestConfig<TestArgs, WorkerArgs>, "expect" | "globalTimeout" | "timeout" | "use" | "webServer"> & {
|
|
21
|
+
expect: Omit<NonNullable<PlaywrightTestConfig<TestArgs, WorkerArgs>["expect"]>, "timeout"> & {
|
|
22
|
+
timeout: number;
|
|
23
|
+
};
|
|
24
|
+
globalTimeout?: number;
|
|
25
|
+
timeout: number;
|
|
26
|
+
use: Omit<NonNullable<PlaywrightTestConfig<TestArgs, WorkerArgs>["use"]>, "actionTimeout" | "baseURL" | "navigationTimeout"> & {
|
|
27
|
+
actionTimeout: number;
|
|
28
|
+
baseURL?: string;
|
|
29
|
+
navigationTimeout: number;
|
|
30
|
+
};
|
|
31
|
+
webServer?: PlaywrightTestConfig<TestArgs, WorkerArgs>["webServer"];
|
|
32
|
+
};
|
|
33
|
+
export interface PlaywrightConfigOptions {
|
|
34
|
+
defaultFileTimeoutSeconds?: number;
|
|
35
|
+
env?: NodeJS.ProcessEnv;
|
|
36
|
+
}
|
|
37
|
+
export declare function defineTestkitConfig(): DefinedTestkitPlaywrightConfig;
|
|
38
|
+
export declare function defineTestkitConfig<TestArgs = object, WorkerArgs = object>(config: PlaywrightTestConfig<TestArgs, WorkerArgs>, options?: PlaywrightConfigOptions): DefinedTestkitPlaywrightConfig<TestArgs, WorkerArgs>;
|
|
39
|
+
export interface UiSandboxOptions {
|
|
40
|
+
allowRemote?: boolean;
|
|
41
|
+
backendBaseUrl?: string;
|
|
42
|
+
baseUrl?: string;
|
|
43
|
+
frontendBaseUrl?: string;
|
|
44
|
+
headers?: Record<string, string>;
|
|
45
|
+
prefix?: string;
|
|
46
|
+
}
|
|
47
|
+
export interface UiSandboxFixture {
|
|
48
|
+
backendBaseUrl: string;
|
|
49
|
+
frontendBaseUrl: string;
|
|
50
|
+
id: string;
|
|
51
|
+
page: Page;
|
|
52
|
+
}
|
|
53
|
+
export interface UiSandboxFixtures {
|
|
54
|
+
testkitSandbox: UiSandboxFixture;
|
|
55
|
+
}
|
|
56
|
+
export interface UiAnimationPage {
|
|
57
|
+
evaluate(pageFunction: (frameCount: number) => Promise<void>, frameCount: number): Promise<void>;
|
|
58
|
+
}
|
|
59
|
+
export interface UiNetworkIdlePage extends UiAnimationPage {
|
|
60
|
+
waitForLoadState(state: "domcontentloaded" | "load" | "networkidle", options?: {
|
|
61
|
+
timeout?: number;
|
|
62
|
+
}): Promise<void>;
|
|
63
|
+
}
|
|
64
|
+
export interface StableElement {
|
|
65
|
+
getBoundingClientRect(): {
|
|
66
|
+
toJSON(): unknown;
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export interface UiStableLocator {
|
|
70
|
+
evaluate(pageFunction: (node: StableElement, requiredStableFrames: number) => Promise<void>, requiredStableFrames: number): Promise<void>;
|
|
71
|
+
waitFor(options: {
|
|
72
|
+
state: "visible";
|
|
73
|
+
timeout?: number;
|
|
74
|
+
}): Promise<void>;
|
|
75
|
+
}
|
|
76
|
+
export interface UiStableElementPage {
|
|
77
|
+
locator(selector: string): UiStableLocator;
|
|
78
|
+
}
|
|
79
|
+
export interface ImageElement {
|
|
80
|
+
readonly complete: boolean;
|
|
81
|
+
addEventListener(type: "error" | "load", listener: () => void, options: {
|
|
82
|
+
once: true;
|
|
83
|
+
}): void;
|
|
84
|
+
}
|
|
85
|
+
export interface UiImageLocator {
|
|
86
|
+
count(): Promise<number>;
|
|
87
|
+
nth(index: number): {
|
|
88
|
+
evaluate(pageFunction: (element: ImageElement) => Promise<void> | undefined): Promise<void>;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
export interface UiImagesPage {
|
|
92
|
+
locator(selector: string): UiImageLocator;
|
|
93
|
+
}
|
|
94
|
+
export interface UiTargetOptions {
|
|
95
|
+
allowRemote?: unknown;
|
|
96
|
+
}
|
|
97
|
+
export declare function createUiSandbox(options?: UiSandboxOptions): {
|
|
98
|
+
expect: import("@playwright/test").Expect<{}>;
|
|
99
|
+
test: import("@playwright/test").TestType<import("@playwright/test").PlaywrightTestArgs & import("@playwright/test").PlaywrightTestOptions & UiSandboxFixtures, import("@playwright/test").PlaywrightWorkerArgs & import("@playwright/test").PlaywrightWorkerOptions>;
|
|
100
|
+
};
|
|
101
|
+
export declare function createSandboxId(options?: Pick<UiSandboxOptions, "prefix">): string;
|
|
102
|
+
export declare function resolveFrontendBaseUrl(options?: UiSandboxOptions): string;
|
|
103
|
+
export declare function resolveBackendBaseUrl(options?: UiSandboxOptions): string;
|
|
104
|
+
export declare function assertSafeUiTarget(url: unknown, options?: UiTargetOptions): string;
|
|
105
|
+
export declare function assertSafeUiTargets(urls?: readonly unknown[], options?: UiTargetOptions): string[];
|
|
106
|
+
export declare function createAuthedApiClient(playwrightRequest?: APIRequest, options?: UiSandboxOptions): Promise<APIRequestContext>;
|
|
107
|
+
export declare function waitForUiSettled(page: UiNetworkIdlePage, options?: {
|
|
108
|
+
frames?: number;
|
|
109
|
+
timeout?: number;
|
|
110
|
+
}): Promise<void>;
|
|
111
|
+
export declare function waitForAnimationFrames(page: UiAnimationPage, frames?: unknown): Promise<void>;
|
|
112
|
+
export declare function waitForNetworkIdle(page: UiNetworkIdlePage, options?: {
|
|
113
|
+
frames?: number;
|
|
114
|
+
timeout?: number;
|
|
115
|
+
}): Promise<void>;
|
|
116
|
+
export declare function waitForElementStable(page: UiStableElementPage, selector: string, options?: {
|
|
117
|
+
frames?: number;
|
|
118
|
+
timeout?: number;
|
|
119
|
+
}): Promise<void>;
|
|
120
|
+
export declare function waitForImagesLoaded(page: UiImagesPage, containerSelector?: string | null): Promise<void>;
|
|
121
|
+
export * from "@playwright/test";
|
|
122
|
+
|
|
123
|
+
export {
|
|
124
|
+
APIRequest,
|
|
125
|
+
APIRequestContext,
|
|
126
|
+
Page,
|
|
127
|
+
PlaywrightTestConfig,
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface VitestConfigOptions {
|
|
2
|
+
exclude?: readonly string[];
|
|
3
|
+
}
|
|
4
|
+
export type DefinedVitestConfig<TConfig extends Record<string, unknown>> = TConfig & {
|
|
5
|
+
test: Record<string, unknown> & {
|
|
6
|
+
exclude: string[];
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare function defineConfig(): DefinedVitestConfig<Record<string, never>>;
|
|
10
|
+
export declare function defineConfig<TConfig extends Record<string, unknown>>(config: TConfig, options?: VitestConfigOptions): DefinedVitestConfig<TConfig>;
|
|
11
|
+
export declare function testkitExcludes(): string[];
|
|
12
|
+
|
|
13
|
+
export {};
|