@overkill-dev/run 0.0.62 → 0.0.64
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/assertion-protocol/assertion-node.d.ts +0 -15
- package/assertion-protocol/assertion-node.d.ts.map +1 -1
- package/assertion-protocol/assertion-reference.d.ts +0 -21
- package/assertion-protocol/assertion-reference.d.ts.map +1 -1
- package/assertion-protocol/assertion-reference.js +3 -30
- package/assertion-protocol/assertion-reference.js.map +1 -1
- package/assertion-protocol/assertions/boolean.d.ts +0 -7
- package/assertion-protocol/assertions/boolean.d.ts.map +1 -1
- package/assertion-protocol/assertions/collection.d.ts +0 -9
- package/assertion-protocol/assertions/collection.d.ts.map +1 -1
- package/assertion-protocol/assertions/equality.d.ts +0 -11
- package/assertion-protocol/assertions/equality.d.ts.map +1 -1
- package/assertion-protocol/assertions/fail.d.ts +0 -5
- package/assertion-protocol/assertions/fail.d.ts.map +1 -1
- package/assertion-protocol/assertions/numeric.d.ts +0 -13
- package/assertion-protocol/assertions/numeric.d.ts.map +1 -1
- package/assertion-protocol/assertions/partial.d.ts +0 -9
- package/assertion-protocol/assertions/partial.d.ts.map +1 -1
- package/assertion-protocol/assertions/presence.d.ts +0 -11
- package/assertion-protocol/assertions/presence.d.ts.map +1 -1
- package/assertion-protocol/assertions/string.d.ts +0 -13
- package/assertion-protocol/assertions/string.d.ts.map +1 -1
- package/assertion-protocol/assertions/type-shape.d.ts +0 -19
- package/assertion-protocol/assertions/type-shape.d.ts.map +1 -1
- package/assertion-protocol/source-location-forwarding.js +15 -9
- package/assertion-protocol/source-location-forwarding.js.map +1 -1
- package/assertion-protocol/source-location.js +1 -0
- package/assertion-protocol/source-location.js.map +1 -1
- package/assertion-protocol/thrown-error-record.d.ts +0 -1
- package/assertion-protocol/thrown-error-record.d.ts.map +1 -1
- package/assertion-protocol/thrown-matcher.d.ts +1 -18
- package/assertion-protocol/thrown-matcher.d.ts.map +1 -1
- package/compare/serialized-value-shape.d.ts +0 -9
- package/compare/serialized-value-shape.d.ts.map +1 -1
- package/compare/serialized-value.d.ts +1 -8
- package/compare/serialized-value.d.ts.map +1 -1
- package/engine/assertion-facade.d.ts +2 -5
- package/engine/assertion-facade.d.ts.map +1 -1
- package/engine/async-control.d.ts +0 -26
- package/engine/async-control.d.ts.map +1 -1
- package/engine/async-leak-diagnostics.js +9 -9
- package/engine/async-leak-diagnostics.js.map +1 -1
- package/engine/case-attempt-execution.js +191 -0
- package/engine/case-attempt-execution.js.map +1 -0
- package/engine/case-execution.d.ts +5 -16
- package/engine/case-execution.d.ts.map +1 -1
- package/engine/case-execution.js +25 -24
- package/engine/case-execution.js.map +1 -1
- package/engine/coverage-artifact.d.ts +1 -14
- package/engine/coverage-artifact.d.ts.map +1 -1
- package/engine/custom-assertion-recording.js +1 -1
- package/engine/custom-assertion-recording.js.map +1 -1
- package/engine/engine.d.ts +1 -8
- package/engine/engine.d.ts.map +1 -1
- package/engine/execution-async-leak-policy.js +3 -10
- package/engine/execution-async-leak-policy.js.map +1 -1
- package/engine/execution-global-error-observer.d.ts +2 -4
- package/engine/execution-global-error-observer.d.ts.map +1 -1
- package/engine/execution-global-error-observer.js +20 -46
- package/engine/execution-global-error-observer.js.map +1 -1
- package/engine/execution-options.d.ts +4 -7
- package/engine/execution-options.d.ts.map +1 -1
- package/engine/execution-options.js +7 -2
- package/engine/execution-options.js.map +1 -1
- package/engine/execution-resource-budget-breach.d.ts +0 -9
- package/engine/execution-resource-budget-breach.d.ts.map +1 -1
- package/engine/execution-resource-budget-tracking.js.map +1 -1
- package/engine/execution-resource-tracked-cases.js.map +1 -1
- package/engine/execution-result.js.map +1 -1
- package/engine/execution-supervision-state.js.map +1 -1
- package/engine/execution-supervision.d.ts +0 -16
- package/engine/execution-supervision.d.ts.map +1 -1
- package/engine/execution-supervision.js +50 -33
- package/engine/execution-supervision.js.map +1 -1
- package/engine/execution-test-plan-cases.js +6 -126
- package/engine/execution-test-plan-cases.js.map +1 -1
- package/engine/execution-test-plan-resource-usage.js.map +1 -1
- package/engine/execution.d.ts +1 -12
- package/engine/execution.d.ts.map +1 -1
- package/engine/execution.js +3 -3
- package/engine/execution.js.map +1 -1
- package/engine/identity.d.ts +3 -6
- package/engine/identity.d.ts.map +1 -1
- package/engine/reporter-dispatcher.d.ts +1 -11
- package/engine/reporter-dispatcher.d.ts.map +1 -1
- package/engine/reporter-dispatcher.js +1 -0
- package/engine/reporter-dispatcher.js.map +1 -1
- package/engine/reporter-event-queue.js.map +1 -1
- package/engine/reporter-output.d.ts +0 -6
- package/engine/reporter-output.d.ts.map +1 -1
- package/engine/reporter.d.ts +2 -17
- package/engine/reporter.d.ts.map +1 -1
- package/engine/reporter.js.map +1 -1
- package/engine/reporting-context.d.ts +1 -13
- package/engine/reporting-context.d.ts.map +1 -1
- package/engine/require-assertion-facade.d.ts +2 -5
- package/engine/require-assertion-facade.d.ts.map +1 -1
- package/engine/resource-usage.d.ts +22 -0
- package/engine/resource-usage.d.ts.map +1 -0
- package/engine/retry-policy.d.ts +4 -0
- package/engine/retry-policy.d.ts.map +1 -0
- package/engine/retry-policy.js +22 -0
- package/engine/retry-policy.js.map +1 -0
- package/engine/run-artifact.d.ts +45 -0
- package/engine/run-artifact.d.ts.map +1 -0
- package/engine/run-result.d.ts +18 -114
- package/engine/run-result.d.ts.map +1 -1
- package/engine/run-result.js +14 -0
- package/engine/run-result.js.map +1 -1
- package/engine/run-timings.d.ts +0 -18
- package/engine/run-timings.d.ts.map +1 -1
- package/engine/runner-error-reporting.js.map +1 -1
- package/engine/test-attempt-history.js +24 -0
- package/engine/test-attempt-history.js.map +1 -0
- package/engine/test-body-resource-attachment.d.ts +0 -12
- package/engine/test-body-resource-attachment.d.ts.map +1 -1
- package/engine/test-body-resource-attachment.js +3 -134
- package/engine/test-body-resource-attachment.js.map +1 -1
- package/engine/test-data.d.ts +0 -6
- package/engine/test-data.d.ts.map +1 -1
- package/engine/test-node.d.ts +0 -21
- package/engine/test-node.d.ts.map +1 -1
- package/engine/test-node.js +1 -20
- package/engine/test-node.js.map +1 -1
- package/engine/test-plan.d.ts +1 -4
- package/engine/test-plan.d.ts.map +1 -1
- package/package.json +21 -7
- package/packages/run/config.entry-point.d.ts +2 -0
- package/packages/run/config.entry-point.d.ts.map +1 -1
- package/packages/run/run.entry-point.d.ts +2 -0
- package/packages/run/run.entry-point.d.ts.map +1 -1
- package/packages/run/transcript-store.entry-point.d.ts +3 -0
- package/packages/run/transcript-store.entry-point.d.ts.map +1 -0
- package/packages/run/transcript-store.entry-point.js +2 -0
- package/packages/run/transcript-store.entry-point.js.map +1 -0
- package/packages/simulation/transcript.entry-point.js +2 -0
- package/packages/simulation/transcript.entry-point.js.map +1 -0
- package/readme.md +47 -2
- package/reporters/human-reporter-rendering.js +12 -3
- package/reporters/human-reporter-rendering.js.map +1 -1
- package/reporters/line-reporter.js +6 -1
- package/reporters/line-reporter.js.map +1 -1
- package/reporters/tree-reporter.js +2 -103
- package/reporters/tree-reporter.js.map +1 -1
- package/resources/resource-definition-shape.d.ts +0 -2
- package/resources/resource-definition-shape.d.ts.map +1 -1
- package/resources/resource-definition-types.d.ts +1 -96
- package/resources/resource-definition-types.d.ts.map +1 -1
- package/resources/resource-definition.js.map +1 -1
- package/resources/resource-lifecycle-error.d.ts +0 -1
- package/resources/resource-lifecycle-error.d.ts.map +1 -1
- package/resources/resource-lifecycle-error.js +17 -1
- package/resources/resource-lifecycle-error.js.map +1 -1
- package/resources/resource-scenario-binding.js +1 -69
- package/resources/resource-scenario-binding.js.map +1 -1
- package/resources/resource-scenario.d.ts +0 -19
- package/resources/resource-scenario.d.ts.map +1 -1
- package/resources/resource-session.d.ts +1 -20
- package/resources/resource-session.d.ts.map +1 -1
- package/resources/resources.d.ts +5 -88
- package/resources/resources.d.ts.map +1 -1
- package/resources/resources.js +5 -81
- package/resources/resources.js.map +1 -1
- package/resources/runtime-definition.d.ts +0 -7
- package/resources/runtime-definition.d.ts.map +1 -1
- package/resources/runtime-definition.js +2 -57
- package/resources/runtime-definition.js.map +1 -1
- package/resources/runtime-matrix-definition.d.ts +0 -36
- package/resources/runtime-matrix-definition.d.ts.map +1 -1
- package/run/capability-policy-snapshots.d.ts +0 -19
- package/run/capability-policy-snapshots.d.ts.map +1 -1
- package/run/capability-policy.js +10 -5
- package/run/capability-policy.js.map +1 -1
- package/run/collected-run-plan.js.map +1 -1
- package/run/command-line-command-namespace.d.ts +0 -5
- package/run/command-line-command-namespace.d.ts.map +1 -1
- package/run/command-line-command.d.ts +1 -4
- package/run/command-line-command.d.ts.map +1 -1
- package/run/command-line-runner.d.ts +0 -2
- package/run/command-line-runner.d.ts.map +1 -1
- package/run/coverage-loaded-sources.js +112 -0
- package/run/coverage-loaded-sources.js.map +1 -0
- package/run/coverage-native-data.js +18 -0
- package/run/coverage-native-data.js.map +1 -0
- package/run/coverage-paths.js +45 -4
- package/run/coverage-paths.js.map +1 -1
- package/run/coverage-reporting.js +37 -123
- package/run/coverage-reporting.js.map +1 -1
- package/run/coverage-run-record.js +50 -0
- package/run/coverage-run-record.js.map +1 -0
- package/run/coverage-runtime-source.js +37 -0
- package/run/coverage-runtime-source.js.map +1 -0
- package/run/coverage-session.js +344 -6
- package/run/coverage-session.js.map +1 -1
- package/run/coverage-source-map.js +125 -0
- package/run/coverage-source-map.js.map +1 -0
- package/run/coverage-source-selection.js +120 -0
- package/run/coverage-source-selection.js.map +1 -0
- package/run/current-process-run-orchestrator.d.ts +1 -5
- package/run/current-process-run-orchestrator.d.ts.map +1 -1
- package/run/duration-history.d.ts +0 -30
- package/run/duration-history.d.ts.map +1 -1
- package/run/duration-history.js +1 -0
- package/run/duration-history.js.map +1 -1
- package/run/node-run-execution.js +25 -0
- package/run/node-run-execution.js.map +1 -0
- package/run/node-runtime-state-store.js +38 -0
- package/run/node-runtime-state-store.js.map +1 -0
- package/run/node-worker-pool-factory.js +0 -31
- package/run/node-worker-pool-factory.js.map +1 -1
- package/run/path-containment.js +6 -1
- package/run/path-containment.js.map +1 -1
- package/run/permission-denial-runtime-policy.js +21 -13
- package/run/permission-denial-runtime-policy.js.map +1 -1
- package/run/placement-trace.d.ts +0 -18
- package/run/placement-trace.d.ts.map +1 -1
- package/run/recorded-coverage-run.js +45 -0
- package/run/recorded-coverage-run.js.map +1 -0
- package/run/recorded-coverage-session.js +50 -0
- package/run/recorded-coverage-session.js.map +1 -0
- package/run/resource-lifecycle-composition.d.ts +0 -3
- package/run/resource-lifecycle-composition.d.ts.map +1 -1
- package/run/resource-lifecycle-composition.js +1 -14
- package/run/resource-lifecycle-composition.js.map +1 -1
- package/run/resource-lifecycle-session-acquirer.js +11 -6
- package/run/resource-lifecycle-session-acquirer.js.map +1 -1
- package/run/resource-lifecycle-state.d.ts +4 -5
- package/run/resource-lifecycle-state.d.ts.map +1 -1
- package/run/resource-lifecycle-state.js +9 -3
- package/run/resource-lifecycle-state.js.map +1 -1
- package/run/resource-lifecycle.js +36 -10
- package/run/resource-lifecycle.js.map +1 -1
- package/run/resource-usage.js.map +1 -1
- package/run/retry-artifact-retention.js +37 -0
- package/run/retry-artifact-retention.js.map +1 -0
- package/run/run-collection-source.d.ts +1 -5
- package/run/run-collection-source.d.ts.map +1 -1
- package/run/run-config-schema.d.ts +25 -4
- package/run/run-config-schema.d.ts.map +1 -1
- package/run/run-config-schema.js +7 -0
- package/run/run-config-schema.js.map +1 -1
- package/run/run-config.d.ts +3 -3
- package/run/run-config.d.ts.map +1 -1
- package/run/run-config.js +4 -0
- package/run/run-config.js.map +1 -1
- package/run/run-coverage.js +5 -2
- package/run/run-coverage.js.map +1 -1
- package/run/run-discovery-types.d.ts +0 -14
- package/run/run-discovery-types.d.ts.map +1 -1
- package/run/run-engine-primitives.d.ts +11 -0
- package/run/run-engine-primitives.d.ts.map +1 -0
- package/run/run-engine-selection.d.ts +0 -10
- package/run/run-engine-selection.d.ts.map +1 -1
- package/run/run-errors.d.ts +0 -2
- package/run/run-errors.d.ts.map +1 -1
- package/run/run-errors.js +1 -0
- package/run/run-errors.js.map +1 -1
- package/run/run-execution-config.d.ts +5 -0
- package/run/run-execution-config.d.ts.map +1 -1
- package/run/run-facts.js +2 -0
- package/run/run-facts.js.map +1 -1
- package/run/run-if-main-options.d.ts +0 -7
- package/run/run-if-main-options.d.ts.map +1 -1
- package/run/run-if-main-profile.d.ts +0 -1
- package/run/run-if-main-profile.d.ts.map +1 -1
- package/run/run-if-main.d.ts +0 -1
- package/run/run-if-main.d.ts.map +1 -1
- package/run/run-isolated-command.js +2 -0
- package/run/run-isolated-command.js.map +1 -1
- package/run/run-local-command.js +8 -82
- package/run/run-local-command.js.map +1 -1
- package/run/run-local-coverage.js +72 -0
- package/run/run-local-coverage.js.map +1 -0
- package/run/run-local-execution.js +1 -0
- package/run/run-local-execution.js.map +1 -1
- package/run/run-local-resolution.js +6 -3
- package/run/run-local-resolution.js.map +1 -1
- package/run/run-orchestrator-dependencies.d.ts +2 -7
- package/run/run-orchestrator-dependencies.d.ts.map +1 -1
- package/run/run-orchestrator.d.ts +0 -8
- package/run/run-orchestrator.d.ts.map +1 -1
- package/run/run-orchestrator.entry-point.d.ts +1 -1
- package/run/run-orchestrator.entry-point.d.ts.map +1 -1
- package/run/run-orchestrator.js +6 -18
- package/run/run-orchestrator.js.map +1 -1
- package/run/run-record-error.js +26 -0
- package/run/run-record-error.js.map +1 -0
- package/run/run-record-input.js +34 -0
- package/run/run-record-input.js.map +1 -0
- package/run/run-record-outcomes.d.ts +46 -0
- package/run/run-record-outcomes.d.ts.map +1 -0
- package/run/run-record-result.js +58 -0
- package/run/run-record-result.js.map +1 -0
- package/run/run-record-storage.js +51 -0
- package/run/run-record-storage.js.map +1 -0
- package/run/run-record-types.d.ts +73 -0
- package/run/run-record-types.d.ts.map +1 -0
- package/run/run-record-versions.js +51 -0
- package/run/run-record-versions.js.map +1 -0
- package/run/run-record.js +48 -0
- package/run/run-record.js.map +1 -0
- package/run/run-result-reporting.js +16 -0
- package/run/run-result-reporting.js.map +1 -0
- package/run/run-selection-filters.d.ts +2 -11
- package/run/run-selection-filters.d.ts.map +1 -1
- package/run/run-supervised-finalization.js +8 -0
- package/run/run-supervised-finalization.js.map +1 -0
- package/run/run-supervised-process.js +34 -33
- package/run/run-supervised-process.js.map +1 -1
- package/run/run-support.js +17 -8
- package/run/run-support.js.map +1 -1
- package/run/run-test-modules.d.ts +0 -4
- package/run/run-test-modules.d.ts.map +1 -1
- package/run/run-timing-collection.d.ts +0 -21
- package/run/run-timing-collection.d.ts.map +1 -1
- package/run/run-types.d.ts +4 -2
- package/run/run-types.d.ts.map +1 -1
- package/run/run-types.js.map +1 -1
- package/run/run.d.ts +0 -3
- package/run/run.d.ts.map +1 -1
- package/run/supervised-child-execution.js +38 -0
- package/run/supervised-child-execution.js.map +1 -0
- package/run/supervised-child-process.d.ts +1 -53
- package/run/supervised-child-process.d.ts.map +1 -1
- package/run/supervised-child-process.js +1 -5
- package/run/supervised-child-process.js.map +1 -1
- package/run/supervised-child-test-plan.js +2 -0
- package/run/supervised-child-test-plan.js.map +1 -1
- package/run/supervised-child.js +5 -36
- package/run/supervised-child.js.map +1 -1
- package/run/supervised-output-capture.js +66 -0
- package/run/supervised-output-capture.js.map +1 -0
- package/run/supervised-protocol.js.map +1 -1
- package/run/supervised-run-collection.js +3 -1
- package/run/supervised-run-collection.js.map +1 -1
- package/run/supervised-run-resource-policy.js +12 -1
- package/run/supervised-run-resource-policy.js.map +1 -1
- package/run/supervised-run-runtime.js +16 -27
- package/run/supervised-run-runtime.js.map +1 -1
- package/run/supervised-run-state.js +64 -81
- package/run/supervised-run-state.js.map +1 -1
- package/run/supervised-run.js +3 -1
- package/run/supervised-run.js.map +1 -1
- package/run/worker-pool-collection.js +1 -0
- package/run/worker-pool-collection.js.map +1 -1
- package/run/worker-pool-command.js +1 -0
- package/run/worker-pool-command.js.map +1 -1
- package/run/worker-pool-execution.js +2 -1
- package/run/worker-pool-execution.js.map +1 -1
- package/run/worker-pool-hedged-arbitration.js +4 -0
- package/run/worker-pool-hedged-arbitration.js.map +1 -1
- package/run/worker-pool-host-process.js.map +1 -1
- package/run/worker-pool-host-protocol.js.map +1 -1
- package/run/worker-pool-output.js +1 -1
- package/run/worker-pool-output.js.map +1 -1
- package/run/worker-pool-protocol.js.map +1 -1
- package/run/worker-pool-resource-lifecycle-execution.js +1 -0
- package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
- package/run/worker-pool-resource-tracking.js +2 -2
- package/run/worker-pool-resource-tracking.js.map +1 -1
- package/run/worker-pool-results.js +7 -9
- package/run/worker-pool-results.js.map +1 -1
- package/run/worker-pool-run.js +3 -9
- package/run/worker-pool-run.js.map +1 -1
- package/run/worker-pool-task-events.js +7 -2
- package/run/worker-pool-task-events.js.map +1 -1
- package/run/worker-pool-warm-lane-affinity.d.ts +0 -11
- package/run/worker-pool-warm-lane-affinity.d.ts.map +1 -1
- package/run/worker-pool-worker-plan.js +1 -0
- package/run/worker-pool-worker-plan.js.map +1 -1
- package/run/worker-pool-worker-resources.js +1 -0
- package/run/worker-pool-worker-resources.js.map +1 -1
- package/run/worker-pool-worker.js +2 -1
- package/run/worker-pool-worker.js.map +1 -1
- package/sbom.cdx.json +66 -15
- package/transcript/http-transcript.js +3 -0
- package/transcript/http-transcript.js.map +1 -0
- package/transcript/transcript-store.d.ts +25 -0
- package/transcript/transcript-store.d.ts.map +1 -0
- package/transcript/transcript-store.js +73 -0
- package/transcript/transcript-store.js.map +1 -0
- package/assertion-protocol/assertion-evaluation.d.ts +0 -13
- package/assertion-protocol/assertion-evaluation.d.ts.map +0 -1
- package/assertion-protocol/evaluation.d.ts +0 -32
- package/assertion-protocol/evaluation.d.ts.map +0 -1
- package/assertion-protocol/source-location-forwarding.d.ts +0 -4
- package/assertion-protocol/source-location-forwarding.d.ts.map +0 -1
- package/assertion-protocol/source-location.d.ts +0 -8
- package/assertion-protocol/source-location.d.ts.map +0 -1
- package/compare/comparison-result.d.ts +0 -25
- package/compare/comparison-result.d.ts.map +0 -1
- package/compare/comparison.d.ts +0 -12
- package/compare/comparison.d.ts.map +0 -1
- package/engine/async-leak-diagnostics.d.ts +0 -27
- package/engine/async-leak-diagnostics.d.ts.map +0 -1
- package/engine/custom-assertion-recording.d.ts +0 -33
- package/engine/custom-assertion-recording.d.ts.map +0 -1
- package/engine/execution-async-leak-policy.d.ts +0 -24
- package/engine/execution-async-leak-policy.d.ts.map +0 -1
- package/engine/execution-supervision-state.d.ts +0 -30
- package/engine/execution-supervision-state.d.ts.map +0 -1
- package/engine/reporter-disposal.d.ts +0 -6
- package/engine/reporter-disposal.d.ts.map +0 -1
- package/packages/engine/assertion-protocol.entry-point.d.ts +0 -10
- package/packages/engine/assertion-protocol.entry-point.d.ts.map +0 -1
- package/packages/engine/assertion-protocol.entry-point.js +0 -5
- package/packages/engine/assertion-protocol.entry-point.js.map +0 -1
- package/packages/engine/engine.entry-point.d.ts +0 -58
- package/packages/engine/engine.entry-point.d.ts.map +0 -1
- package/packages/engine/engine.entry-point.js +0 -75
- package/packages/engine/engine.entry-point.js.map +0 -1
- package/resources/resource-definition-brand.d.ts +0 -2
- package/resources/resource-definition-brand.d.ts.map +0 -1
- package/resources/resource-graph.d.ts +0 -24
- package/resources/resource-graph.d.ts.map +0 -1
- package/resources/resource-scenario-binding.d.ts +0 -37
- package/resources/resource-scenario-binding.d.ts.map +0 -1
- package/run/duration-history-schema.d.ts +0 -251
- package/run/duration-history-schema.d.ts.map +0 -1
- package/run/supervised-run-state.d.ts +0 -44
- package/run/supervised-run-state.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-transcript.js","sourceRoot":"","sources":["../../../../source/transcript/http-transcript.ts"],"names":[],"mappings":"AAAA,OAOO,uBAAuB,CAAC;AAM/B,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const transcriptIdentity: unique symbol;
|
|
2
|
+
export type TranscriptScope = Readonly<Record<string, unknown>>;
|
|
3
|
+
export type TranscriptEntry = readonly [kind: string, ...values: readonly unknown[]];
|
|
4
|
+
export type TranscriptView<Entry extends TranscriptEntry = TranscriptEntry> = {
|
|
5
|
+
readonly entryCount: number;
|
|
6
|
+
readonly entries: readonly Entry[];
|
|
7
|
+
readonly firstEntry: Entry | null;
|
|
8
|
+
readonly lastEntry: Entry | null;
|
|
9
|
+
readonly nthEntry: (index: number) => Entry | null;
|
|
10
|
+
};
|
|
11
|
+
export type TranscriptStore<Entry extends TranscriptEntry> = {
|
|
12
|
+
readonly record: (...entry: Entry) => void;
|
|
13
|
+
readonly recordInScope: (scope: TranscriptScope | null, ...entry: Entry) => void;
|
|
14
|
+
readonly reset: () => void;
|
|
15
|
+
readonly view: TranscriptView<Entry>;
|
|
16
|
+
};
|
|
17
|
+
type RuntimeTranscriptView = TranscriptView & {
|
|
18
|
+
readonly [transcriptIdentity]: true;
|
|
19
|
+
};
|
|
20
|
+
export declare function brandTranscriptView<Subject extends TranscriptView>(subject: Subject): Subject;
|
|
21
|
+
export declare function runWithTranscriptScope<Value>(scope: TranscriptScope, run: () => Promise<Value>): Promise<Value>;
|
|
22
|
+
export declare function createTranscriptStore<Entry extends TranscriptEntry>(): TranscriptStore<Entry>;
|
|
23
|
+
export declare function isTranscriptView(value: unknown): value is RuntimeTranscriptView;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=transcript-store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcript-store.d.ts","sourceRoot":"","sources":["../../../../source/transcript/transcript-store.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,kBAAkB,eAAyC,CAAC;AAElE,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;AAEhE,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,SAAS,OAAO,EAAE,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GAAG,KAAK,IAAI,qBAAqB,CAE/E"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
2
|
+
const transcriptIdentity = Symbol.for('@overkill-dev/transcript');
|
|
3
|
+
const activeTranscriptScope = new AsyncLocalStorage();
|
|
4
|
+
const noEntries = Object.freeze([]);
|
|
5
|
+
function validIndex(index) {
|
|
6
|
+
return Number.isSafeInteger(index) && index >= 0;
|
|
7
|
+
}
|
|
8
|
+
export function brandTranscriptView(subject) {
|
|
9
|
+
Object.defineProperty(subject, transcriptIdentity, {
|
|
10
|
+
enumerable: false,
|
|
11
|
+
value: true
|
|
12
|
+
});
|
|
13
|
+
return Object.freeze(subject);
|
|
14
|
+
}
|
|
15
|
+
export function currentTranscriptScope() {
|
|
16
|
+
return activeTranscriptScope.getStore() ?? null;
|
|
17
|
+
}
|
|
18
|
+
export async function runWithTranscriptScope(scope, run) {
|
|
19
|
+
return await activeTranscriptScope.run(scope, run);
|
|
20
|
+
}
|
|
21
|
+
function brandedView(currentEntries) {
|
|
22
|
+
const view = {
|
|
23
|
+
get entries() {
|
|
24
|
+
return currentEntries();
|
|
25
|
+
},
|
|
26
|
+
get entryCount() {
|
|
27
|
+
return currentEntries().length;
|
|
28
|
+
},
|
|
29
|
+
get firstEntry() {
|
|
30
|
+
return currentEntries()[0] ?? null;
|
|
31
|
+
},
|
|
32
|
+
get lastEntry() {
|
|
33
|
+
return currentEntries().at(-1) ?? null;
|
|
34
|
+
},
|
|
35
|
+
nthEntry(index) {
|
|
36
|
+
return validIndex(index) ? currentEntries()[index] ?? null : null;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return brandTranscriptView(view);
|
|
40
|
+
}
|
|
41
|
+
export function createTranscriptStore() {
|
|
42
|
+
const entries = [];
|
|
43
|
+
let scopedEntries = new WeakMap();
|
|
44
|
+
function recordInScope(scope, entry) {
|
|
45
|
+
entries.push(entry);
|
|
46
|
+
if (scope !== null) {
|
|
47
|
+
const scopeEntries = scopedEntries.get(scope) ?? [];
|
|
48
|
+
scopeEntries.push(entry);
|
|
49
|
+
scopedEntries.set(scope, scopeEntries);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function currentEntries() {
|
|
53
|
+
const scope = currentTranscriptScope();
|
|
54
|
+
return scope === null ? entries : scopedEntries.get(scope) ?? noEntries;
|
|
55
|
+
}
|
|
56
|
+
return Object.freeze({
|
|
57
|
+
record(...entry) {
|
|
58
|
+
recordInScope(currentTranscriptScope(), entry);
|
|
59
|
+
},
|
|
60
|
+
recordInScope(scope, ...entry) {
|
|
61
|
+
recordInScope(scope, entry);
|
|
62
|
+
},
|
|
63
|
+
reset() {
|
|
64
|
+
entries.length = 0;
|
|
65
|
+
scopedEntries = new WeakMap();
|
|
66
|
+
},
|
|
67
|
+
view: brandedView(currentEntries)
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
export function isTranscriptView(value) {
|
|
71
|
+
return typeof value === 'object' && value !== null && Reflect.get(value, transcriptIdentity) === true;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=transcript-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcript-store.js","sourceRoot":"","sources":["../../../../source/transcript/transcript-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAAC;AAqBlE,MAAM,qBAAqB,GAAG,IAAI,iBAAiB,EAAmB,CAAC;AACvE,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAMpC,SAAS,UAAU,CAAC,KAAa;IAC7B,OAAO,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,mBAAmB,CAAiC,OAAgB;IAChF,M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,CAAC,CAAC;QACpB,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACjB,MAAM,YAAY,GAAG,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;YAEpD,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzB,aAAa,CAAC,GAAG,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;QAC3C,CAAC;IACL,CAAC;IAED,SAAS,cAAc;QACnB,MAAM,KAAK,GAAG,sBAAsB,EAAE,CAAC;QAEvC,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;IAC5E,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC;QACjB,MAAM,CAAC,GAAG,KAAY;YAClB,aAAa,CAAC,sBAAsB,EAAE,EAAE,KAAK,CAAC,CAAC;QACnD,CAAC;QACD,aAAa,CAAC,KAAK,EAAE,GAAG,KAAY;YAChC,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAChC,CAAC;QACD,KAAK;YACD,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC;YACnB,aAAa,GAAG,IAAI,OAAO,EAAE,CAAC;QAClC,CAAC;QACD,IAAI,EAAE,WAAW,CAAC,cAAc,CAAC;KACpC,CAAC,CAAC;AACP,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC3C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,kBAAkB,CAAC,KAAK,IAAI,CAAC;AAC1G,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type ComparisonResult } from '../compare/comparison.ts';
|
|
2
|
-
import type { SerializedValue } from '../compare/serialized-value.ts';
|
|
3
|
-
import type { Diff, DiffPathSegment } from '../diff/diff-shape.ts';
|
|
4
|
-
export type AssertionOutcome = {
|
|
5
|
-
readonly actual: SerializedValue;
|
|
6
|
-
readonly diff: Diff | null;
|
|
7
|
-
readonly expected: SerializedValue;
|
|
8
|
-
readonly passed: boolean;
|
|
9
|
-
readonly path: readonly DiffPathSegment[];
|
|
10
|
-
};
|
|
11
|
-
export declare const assertionOutcome: (actual: unknown, expected: unknown, passed: boolean) => AssertionOutcome;
|
|
12
|
-
export declare function comparisonOutcome(comparison: ComparisonResult): AssertionOutcome;
|
|
13
|
-
//# sourceMappingURL=assertion-evaluation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-evaluation.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/assertion-evaluation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,gBAAgB,EAAqB,MAAM,0BAA0B,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,eAAe,EAAE,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,KAAK,gBACnE,CAAC;AAEtB,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,gBAAgB,GAAG,gBAAgB,CAEhF"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { type AssertionNode, type CompositeAssertionChildNode } from './assertion-node.ts';
|
|
2
|
-
import type { FailedCheck } from './assertion-node-shape.ts';
|
|
3
|
-
type DeepAssertionCheckByName = {
|
|
4
|
-
readonly arrayContainsPartial: 'array-contains-partial';
|
|
5
|
-
readonly deepEqual: 'deep-equal';
|
|
6
|
-
readonly membersPartialDeepEqual: 'members-partial-deep-equal';
|
|
7
|
-
readonly notDeepEqual: 'not-deep-equal';
|
|
8
|
-
readonly partialDeepEqual: 'partial-deep-equal';
|
|
9
|
-
};
|
|
10
|
-
type DeepAssertionCheck = DeepAssertionCheckByName[keyof DeepAssertionCheckByName];
|
|
11
|
-
type DeepAssertionOperandRole = 'actual' | 'expected';
|
|
12
|
-
type PrimitiveValueTypeByName = {
|
|
13
|
-
readonly bigint: 'bigint';
|
|
14
|
-
readonly boolean: 'boolean';
|
|
15
|
-
readonly null: 'null';
|
|
16
|
-
readonly number: 'number';
|
|
17
|
-
readonly string: 'string';
|
|
18
|
-
readonly symbol: 'symbol';
|
|
19
|
-
readonly undefined: 'undefined';
|
|
20
|
-
};
|
|
21
|
-
type PrimitiveValueType = PrimitiveValueTypeByName[keyof PrimitiveValueTypeByName];
|
|
22
|
-
export type InvalidDeepAssertionOperand = {
|
|
23
|
-
readonly check: DeepAssertionCheck;
|
|
24
|
-
readonly index: number | null;
|
|
25
|
-
readonly role: DeepAssertionOperandRole;
|
|
26
|
-
readonly type: PrimitiveValueType;
|
|
27
|
-
};
|
|
28
|
-
export declare function invalidDeepAssertionOperand(assertion: AssertionNode | CompositeAssertionChildNode): InvalidDeepAssertionOperand | null;
|
|
29
|
-
export declare function evaluateAssertion(assertion: AssertionNode | CompositeAssertionChildNode, id: number | string): FailedCheck | null;
|
|
30
|
-
export declare function assertionPasses(assertion: AssertionNode): boolean;
|
|
31
|
-
export {};
|
|
32
|
-
//# sourceMappingURL=evaluation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"evaluation.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/evaluation.ts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vC,SAAS,EAAE,aAAa,GAAG,2BAA2B,GACvD,2BAA2B,GAAG,IAAI,CAgBpC;AA8GD,wBAAgB,iBAAiB,CAC7B,SAAS,EAAE,aAAa,GAAG,2BAA2B,EACtD,EAAE,EAAE,MAAM,GAAG,MAAM,GACpB,WAAW,GAAG,IAAI,CAYpB;AAED,wBAAgB,eAAe,CAAC,SAAS,EAAE,aAAa,GAAG,OAAO,CAEjE"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { NonEmptyReadonlyArray, ResolvableSourceLocation } from './assertion-node-shape.ts';
|
|
2
|
-
export declare function sourceLocationsWithCurrentForwarding(captureLocation: () => ResolvableSourceLocation): NonEmptyReadonlyArray<ResolvableSourceLocation>;
|
|
3
|
-
export declare function forwardAssertionSourceLocations<Result>(sourceLocations: NonEmptyReadonlyArray<ResolvableSourceLocation>, body: () => Result): Result;
|
|
4
|
-
//# sourceMappingURL=source-location-forwarding.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-location-forwarding.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/source-location-forwarding.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,qBAAqB,EACrB,wBAAwB,EAC3B,MAAM,2BAA2B,CAAC;AAgBnC,wBAAgB,oCAAoC,CAChD,eAAe,EAAE,MAAM,wBAAwB,GAChD,qBAAqB,CAAC,wBAAwB,CAAC,CASjD;AAED,wBAAgB,+BAA+B,CAAC,MAAM,EAClD,eAAe,EAAE,qBAAqB,CAAC,wBAAwB,CAAC,EAChE,IAAI,EAAE,MAAM,MAAM,GACnB,MAAM,CAOR"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { KnownSourceLocation, ResolvableSourceLocation, SourceLocation, SourceLocationProvider } from './assertion-node-shape.ts';
|
|
2
|
-
export declare const unknownSourceLocation: SourceLocation;
|
|
3
|
-
export declare function ensureValidSourceLocation(location: SourceLocation): void;
|
|
4
|
-
export declare function ensureKnownSourceLocation(location: SourceLocation): KnownSourceLocation | null;
|
|
5
|
-
export declare function sourceLocationFromStack(stack: string): SourceLocation;
|
|
6
|
-
export declare function captureSourceLocation(): SourceLocationProvider;
|
|
7
|
-
export declare function resolveSourceLocation(location: ResolvableSourceLocation): SourceLocation;
|
|
8
|
-
//# sourceMappingURL=source-location.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"source-location.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/source-location.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACR,mBAAmB,EACnB,wBAAwB,EACxB,cAAc,EACd,sBAAsB,EACzB,MAAM,2BAA2B,CAAC;AAEnC,eAAO,MAAM,qBAAqB,EAAE,cAEnC,CAAC;AAuDF,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,CAIxE;AAED,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,cAAc,GAAG,mBAAmB,GAAG,IAAI,CAI9F;AAqBD,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAIrE;AAED,wBAAgB,qBAAqB,IAAI,sBAAsB,CAW9D;AAUD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,wBAAwB,GAAG,cAAc,CAexF"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import type { Diff, DiffPathSegment } from '../diff/diff-shape.ts';
|
|
2
|
-
import { type SerializedValue } from './serialized-value.ts';
|
|
3
|
-
export type ComparisonResult = {
|
|
4
|
-
readonly actual: SerializedValue;
|
|
5
|
-
readonly diff: Diff | null;
|
|
6
|
-
readonly expected: SerializedValue;
|
|
7
|
-
readonly passed: boolean;
|
|
8
|
-
readonly path: readonly DiffPathSegment[];
|
|
9
|
-
};
|
|
10
|
-
type ComparisonResultInput = {
|
|
11
|
-
readonly actual: unknown;
|
|
12
|
-
readonly diff: Diff | null;
|
|
13
|
-
readonly expected: unknown;
|
|
14
|
-
readonly passed: boolean;
|
|
15
|
-
readonly path: readonly DiffPathSegment[];
|
|
16
|
-
};
|
|
17
|
-
export declare const emptyPath: readonly DiffPathSegment[];
|
|
18
|
-
export declare function firstDiffPath(diff: Diff | null): readonly DiffPathSegment[];
|
|
19
|
-
export declare function comparisonResult(input: ComparisonResultInput): ComparisonResult;
|
|
20
|
-
export declare function passedResult(actual: unknown, expected: unknown): ComparisonResult;
|
|
21
|
-
export declare function failedResult(actual: unknown, expected: unknown, diff: Diff | null): ComparisonResult;
|
|
22
|
-
export declare function serializedValueDiff(actual: unknown, expected: unknown): Diff;
|
|
23
|
-
export declare function valueMismatch(actual: unknown, expected: unknown): ComparisonResult;
|
|
24
|
-
export {};
|
|
25
|
-
//# sourceMappingURL=comparison-result.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comparison-result.d.ts","sourceRoot":"","sources":["../../../../source/compare/comparison-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAER,IAAI,EACJ,eAAe,EAIlB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,eAAe,EAAkB,MAAM,uBAAuB,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,eAAe,CAAC;IACnC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,eAAe,EAAE,CAAC;CAC7C,CAAC;AAEF,KAAK,qBAAqB,GAAG;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,SAAS,eAAe,EAAE,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,SAAS,eAAe,EAAO,CAAC;AAoBxD,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,eAAe,EAAE,CAQ3E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,GAAG,gBAAgB,CAQ/E;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,gBAAgB,CAEjF;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,gBAAgB,CAEpG;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAM5E;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,gBAAgB,CAElF"}
|
package/compare/comparison.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Diff } from '../diff/diff-shape.ts';
|
|
2
|
-
import { type ComparisonResult as StructuredComparisonResult } from './comparison-result.ts';
|
|
3
|
-
export type ComparisonResult = StructuredComparisonResult;
|
|
4
|
-
export declare const serializedValueDiff: (actual: unknown, expected: unknown) => Diff;
|
|
5
|
-
export declare function compareEqualValues(actual: unknown, expected: unknown): ComparisonResult;
|
|
6
|
-
export declare function compareStringEquality(actual: string, expected: string): ComparisonResult;
|
|
7
|
-
export declare function compareDeepValues(actual: unknown, expected: unknown): ComparisonResult;
|
|
8
|
-
export declare function comparePartialValue(actual: unknown, expected: unknown): ComparisonResult;
|
|
9
|
-
export declare function compareArrayContainsPartial(actual: unknown, expected: unknown): ComparisonResult;
|
|
10
|
-
export declare function compareMembersPartialDeepEqual(actual: unknown, expected: unknown): ComparisonResult;
|
|
11
|
-
export declare function serializedOutcome(actual: unknown, expected: unknown, passed: boolean): ComparisonResult;
|
|
12
|
-
//# sourceMappingURL=comparison.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"comparison.d.ts","sourceRoot":"","sources":["../../../../source/compare/comparison.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAOH,KAAK,gBAAgB,IAAI,0BAA0B,EACtD,MAAM,wBAAwB,CAAC;AAKhC,MAAM,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;AAE1D,eAAO,MAAM,mBAAmB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAgC,CAAC;AAE3G,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,gBAAgB,CAEvF;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,gBAAgB,CAWxF;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,gBAAgB,CAQtF;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,gBAAgB,CAQxF;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,gBAAgB,CAoBhG;AAED,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,gBAAgB,CAsBnG;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,gBAAgB,CAEvG"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { type CaseId, type WorkId } from './identity.ts';
|
|
2
|
-
import type { RunnerError } from './run-result.ts';
|
|
3
|
-
import type { TestPlanCase } from './test-plan.ts';
|
|
4
|
-
export type AsyncLeakMonitor = {
|
|
5
|
-
readonly casePromiseLeakError: (testCase: TestPlanCase) => RunnerError | null;
|
|
6
|
-
readonly runCase: <Value>(testCase: TestPlanCase, run: () => Promise<Value>) => Promise<Value>;
|
|
7
|
-
readonly stop: () => void;
|
|
8
|
-
};
|
|
9
|
-
export declare function createDisabledAsyncLeakMonitor(): AsyncLeakMonitor;
|
|
10
|
-
type ActiveResourceLeakCause = {
|
|
11
|
-
readonly capability: 'async-leak';
|
|
12
|
-
readonly leak: 'active-resource';
|
|
13
|
-
readonly phase: 'body' | 'run';
|
|
14
|
-
readonly resourceTypes: readonly string[];
|
|
15
|
-
readonly strictness: 'observed';
|
|
16
|
-
};
|
|
17
|
-
type ActiveResourceLeakInput = {
|
|
18
|
-
readonly after: readonly string[];
|
|
19
|
-
readonly attributedTo: CaseId | null;
|
|
20
|
-
readonly attributedToWork: WorkId | null;
|
|
21
|
-
readonly before: readonly string[];
|
|
22
|
-
readonly phase: ActiveResourceLeakCause['phase'];
|
|
23
|
-
};
|
|
24
|
-
export declare function activeResourceLeakError(input: ActiveResourceLeakInput): RunnerError | null;
|
|
25
|
-
export declare function createAsyncLeakMonitor(): AsyncLeakMonitor;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=async-leak-diagnostics.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"async-leak-diagnostics.d.ts","sourceRoot":"","sources":["../../../../source/engine/async-leak-diagnostics.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,MAAM,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAgBnD,MAAM,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ceLocations } from '../assertion-protocol/assertion-node-shape.ts';
|
|
3
|
-
import type { TestContractFailure } from './run-result.ts';
|
|
4
|
-
type PendingAssertAssertionSink = {
|
|
5
|
-
readonly resolve: (assertion: AssertAssertionNode) => void;
|
|
6
|
-
};
|
|
7
|
-
export type AssertAssertionSink = {
|
|
8
|
-
readonly failContract: (failure: TestContractFailure) => never;
|
|
9
|
-
readonly recordAssert: (assertion: AssertAssertionNode) => void;
|
|
10
|
-
readonly recordPendingAssert: () => PendingAssertAssertionSink;
|
|
11
|
-
};
|
|
12
|
-
export type RequireAssertionSink = {
|
|
13
|
-
readonly failContract: (failure: TestContractFailure) => never;
|
|
14
|
-
readonly recordRequire: (assertion: RequireAssertionNode) => void;
|
|
15
|
-
};
|
|
16
|
-
type AssertReferenceRecordingInput = {
|
|
17
|
-
readonly annotation: string | null;
|
|
18
|
-
readonly parameters: readonly unknown[];
|
|
19
|
-
readonly reference: unknown;
|
|
20
|
-
readonly sink: AssertAssertionSink;
|
|
21
|
-
readonly sourceLocations: ResolvableSourceLocations;
|
|
22
|
-
};
|
|
23
|
-
type RequireReferenceRecordingInput = {
|
|
24
|
-
readonly annotation: string | null;
|
|
25
|
-
readonly parameters: readonly unknown[];
|
|
26
|
-
readonly reference: unknown;
|
|
27
|
-
readonly sink: RequireAssertionSink;
|
|
28
|
-
readonly sourceLocations: ResolvableSourceLocations;
|
|
29
|
-
};
|
|
30
|
-
export declare function recordAssertReference(input: AssertReferenceRecordingInput): Promise<void> | void;
|
|
31
|
-
export declare function recordRequireReference(input: RequireReferenceRecordingInput): void;
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=custom-assertion-recording.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-assertion-recording.d.ts","sourceRoot":"","sources":["../../../../source/engine/custom-assertion-recording.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,mBAAmB,EAGnB,oBAAoB,EACvB,MAAM,yCAAyC,CAA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AAE,yBAAyB,CAAC;CACvD,CAAC;AA+KF,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,6BAA6B,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAyBhG;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,8BAA8B,GAAG,IAAI,CAkBlF"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type AsyncLeakMonitor } from './async-leak-diagnostics.ts';
|
|
2
|
-
import type { ConcurrentCase } from './execution-supervision.ts';
|
|
3
|
-
import type { RunnerError } from './run-result.ts';
|
|
4
|
-
import type { TestPlanCase } from './test-plan.ts';
|
|
5
|
-
export type AsyncLeakDiagnostics = 'disabled' | 'enabled';
|
|
6
|
-
export type AsyncLeakDependencies = {
|
|
7
|
-
readonly asyncLeakMonitor: AsyncLeakMonitor;
|
|
8
|
-
readonly readActiveResourceTypes: () => readonly string[];
|
|
9
|
-
};
|
|
10
|
-
export type AsyncLeakCheckedCase = {
|
|
11
|
-
readonly executedCase: ConcurrentCase;
|
|
12
|
-
readonly runnerErrors: readonly RunnerError[];
|
|
13
|
-
};
|
|
14
|
-
export type CaseAsyncLeakPolicyInput = {
|
|
15
|
-
readonly activeResourceTypesBefore: readonly string[];
|
|
16
|
-
readonly dependencies: AsyncLeakDependencies;
|
|
17
|
-
readonly executedCase: ConcurrentCase;
|
|
18
|
-
readonly includeActiveResourceLeaks: boolean;
|
|
19
|
-
readonly testCase: TestPlanCase;
|
|
20
|
-
};
|
|
21
|
-
export declare function createExecutionAsyncLeakMonitor(diagnostics: AsyncLeakDiagnostics): AsyncLeakMonitor;
|
|
22
|
-
export declare function caseWithAsyncLeakPolicy(input: CaseAsyncLeakPolicyInput): Promise<AsyncLeakCheckedCase>;
|
|
23
|
-
export declare function concurrentRunActiveResourceLeak(dependencies: AsyncLeakDependencies, activeResourceTypesBefore: readonly string[]): RunnerError | null;
|
|
24
|
-
//# sourceMappingURL=execution-async-leak-policy.d.ts.map
|
|
@@ -1 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EAAE,GAC7C,WAAW,GAAG,IAAI,CAUpB"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Clock } from '@enormora/clock';
|
|
2
|
-
import type { PerTestResult, RunnerError } from './run-result.ts';
|
|
3
|
-
import type { TestPlanCase } from './test-plan.ts';
|
|
4
|
-
export type ExecutionConcurrentCase = {
|
|
5
|
-
readonly result: PerTestResult;
|
|
6
|
-
readonly runnerErrors: readonly RunnerError[];
|
|
7
|
-
readonly durationMicroseconds: number;
|
|
8
|
-
};
|
|
9
|
-
export type CaseCompletion = {
|
|
10
|
-
readonly complete: (executedCase: ExecutionConcurrentCase) => void;
|
|
11
|
-
readonly promise: Promise<ExecutionConcurrentCase>;
|
|
12
|
-
};
|
|
13
|
-
export type ActiveCase = {
|
|
14
|
-
readonly abort: () => void;
|
|
15
|
-
readonly completion: CaseCompletion;
|
|
16
|
-
readonly hardTimeout: ReturnType<Clock['setTimeout']> | null;
|
|
17
|
-
readonly startedAtMicroseconds: number;
|
|
18
|
-
readonly testCase: TestPlanCase;
|
|
19
|
-
};
|
|
20
|
-
export type ExecutionSupervision = {
|
|
21
|
-
readonly acceptsNewCases: () => boolean;
|
|
22
|
-
readonly activeCases: ReadonlyMap<string, ActiveCase>;
|
|
23
|
-
readonly addActiveCase: (key: string, activeCase: ActiveCase) => void;
|
|
24
|
-
readonly recordRunnerError: (error: RunnerError) => void;
|
|
25
|
-
readonly removeActiveCase: (key: string) => void;
|
|
26
|
-
readonly runnerErrors: readonly RunnerError[];
|
|
27
|
-
readonly stopAcceptingCases: () => void;
|
|
28
|
-
};
|
|
29
|
-
export declare function createExecutionSupervision(): ExecutionSupervision;
|
|
30
|
-
//# sourceMappingURL=execution-supervision-state.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-supervision-state.d.ts","sourceRoot":"","sources":["../../../../source/engine/execution-supervision-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAA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AAI,CAAC;IACjD,QAAQ,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;IAC9C,QAAQ,CAAC,kBAAkB,EAAE,MAAM,IAAI,CAAC;CAC3C,CAAC;AAEF,wBAAgB,0BAA0B,IAAI,oBAAoB,CAwBjE"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { RunnerError } from './run-result.ts';
|
|
2
|
-
export type ReporterDisposal = {
|
|
3
|
-
readonly disposeOnce: () => Promise<readonly RunnerError[]>;
|
|
4
|
-
};
|
|
5
|
-
export declare function createReporterDisposal(disposeReporters: () => Promise<readonly RunnerError[]>): ReporterDisposal;
|
|
6
|
-
//# sourceMappingURL=reporter-disposal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reporter-disposal.d.ts","sourceRoot":"","sources":["../../../../source/engine/reporter-disposal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,CAAC;CAC/D,CAAC;AAEF,wBAAgB,sBAAsB,CAClC,gBAAgB,EAAE,MAAM,OAAO,CAAC,SAAS,WAAW,EAAE,CAAC,GACxD,gBAAgB,CAclB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type { AssertCompositeAssertionReturn, AssertionReference, AssertionReferenceRecord, AssertReferenceArguments, AssertReferenceReturn, CompositeAssertionGroup, CompositeAssertionReference, CompositeAssertionReferenceRecord, CompositeAssertionReturn, CompositeAssertionRunnerInput, CompositeAssertionSummaryContext, CompositeAssertionSummaryFormatter, NarrowingCompositeAssertionReference, NarrowingCompositeAssertionReferenceRecord, NarrowingCompositeAssertionSummaryFormatter } from '../../assertion-protocol/assertion-reference.ts';
|
|
2
|
-
export { createCompositeAssertionGroup, createCompositeAssertionReferenceRecord, createNarrowingCompositeAssertionReferenceRecord, getAssertionReferenceRecord, getCompositeAssertionReferenceRecord, getNarrowingAssertionReferenceRecord, isAssertionReference, isCompositeAssertionGroup, isNarrowingAssertionReference } from '../../assertion-protocol/assertion-reference.ts';
|
|
3
|
-
export type { AssertAssertionNode, BuiltInAssertAssertionNode, CompositeAssertionChildNode, CompositeAssertionNode, ForeignAssertionNode, ForeignAssertionResult, RequireAssertionNode } from '../../assertion-protocol/assertion-node.ts';
|
|
4
|
-
export type { AssertionOptions, AssertionSource, DeepComparable, FailedCheck, FailedCompositeCheck, FailedForeignCheck, FailedLeafCheck, InstanceConstructor, KnownSourceLocation, NonEmptyReadonlyArray, ResolvableSourceLocation, ResolvableSourceLocations, SourceLocation, SourceLocationProvider, UnknownSourceLocation } from '../../assertion-protocol/assertion-node-shape.ts';
|
|
5
|
-
export type { ErrorMatcher, ExactThrownMatcher, SynchronousCallback, ThrownAssertionObservation, ThrownMatcher } from '../../assertion-protocol/thrown-matcher.ts';
|
|
6
|
-
export { thrownMatcherChildren } from '../../assertion-protocol/thrown-matcher.ts';
|
|
7
|
-
export type { ThrownErrorRecord } from '../../assertion-protocol/thrown-error-record.ts';
|
|
8
|
-
export { createThrownErrorRecord } from '../../assertion-protocol/thrown-error-record.ts';
|
|
9
|
-
export { ensureKnownSourceLocation, ensureValidSourceLocation, unknownSourceLocation } from '../../assertion-protocol/source-location.ts';
|
|
10
|
-
//# sourceMappingURL=assertion-protocol.entry-point.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-protocol.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/engine/assertion-protocol.entry-point.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,8BAA8B,EAC9B,kBAAkB,EAClB,wBAAwB,EACxB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,iCAAiC,EACjC,wBAAwB,EACxB,6BAA6B,EAC7B,gCAAgC,EAChC,kCAAkC,EAClC,oCAAoC,EACpC,0CAA0C,EAC1C,2CAA2C,EAC9C,MAAM,iDAAiD,CAAC;AACzD,OAAO,EACH,6BAA6B,EAC7B,uCAAuC,EACvC,gDAAgD,EAChD,2BAA2B,EAC3B,oCAAoC,EACpC,oCAAoC,EACpC,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,EAChC,MAAM,iDAAiD,CAAC;AACzD,YAAY,EACR,mBAAmB,EACnB,0BAA0B,EAC1B,2BAA2B,EAC3B,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACvB,MAAM,4CAA4C,CAAC;AACpD,YAAY,EACR,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,cAAc,EACd,sBAAsB,EACtB,qBAAqB,EACxB,MAAM,kDAAkD,CAAC;AAC1D,YAAY,EACR,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,EAC1B,aAAa,EAChB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,YAAY,EAAE,iBAAiB,EAAE,MAAM,iDAAiD,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EACH,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACxB,MAAM,6CAA6C,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { createCompositeAssertionGroup, createCompositeAssertionReferenceRecord, createNarrowingCompositeAssertionReferenceRecord, getAssertionReferenceRecord, getCompositeAssertionReferenceRecord, getNarrowingAssertionReferenceRecord, isAssertionReference, isCompositeAssertionGroup, isNarrowingAssertionReference } from "../../assertion-protocol/assertion-reference.js";
|
|
2
|
-
export { thrownMatcherChildren } from "../../assertion-protocol/thrown-matcher.js";
|
|
3
|
-
export { createThrownErrorRecord } from "../../assertion-protocol/thrown-error-record.js";
|
|
4
|
-
export { ensureKnownSourceLocation, ensureValidSourceLocation, unknownSourceLocation } from "../../assertion-protocol/source-location.js";
|
|
5
|
-
//# sourceMappingURL=assertion-protocol.entry-point.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-protocol.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/engine/assertion-protocol.entry-point.ts"],"names":[],"mappings":"AAiBA,OAAO,EACH,6BAA6B,EAC7B,uCAAuC,EACvC,gDAAgD,EAChD,2BAA2B,EAC3B,oCAAoC,EACpC,oCAAoC,EACpC,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,EAChC,MAAM,iDAAiD,CAAC;AAkCzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AAEnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAC1F,OAAO,EACH,yBAAyB,EACzB,yBAAyB,EACzB,qBAAqB,EACxB,MAAM,6CAA6C,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { type Engine } from '../../engine/engine.ts';
|
|
2
|
-
import { type RootOptions, type SkippedTestCaseOptions, type SuiteOptions, type TableOptions, type TestCaseOptions, type TestNode, type TestRoot, type ThrowingTestCaseOptions } from '../../engine/test-node.ts';
|
|
3
|
-
export declare function createEngine(): Engine;
|
|
4
|
-
export declare function createRoot(options: RootOptions): ReturnType<Engine['createRoot']>;
|
|
5
|
-
export declare function createSuite(options: SuiteOptions): ReturnType<Engine['createSuite']>;
|
|
6
|
-
export declare function createSkippedTestCase(options: SkippedTestCaseOptions): ReturnType<Engine['createSkippedTestCase']>;
|
|
7
|
-
export declare function createTable(options: TableOptions): ReturnType<Engine['createTable']>;
|
|
8
|
-
export declare function createTestCase(options: TestCaseOptions): ReturnType<Engine['createTestCase']>;
|
|
9
|
-
export declare function createThrowingTestCase(options: ThrowingTestCaseOptions): ReturnType<Engine['createThrowingTestCase']>;
|
|
10
|
-
export declare function createTestPlan(root: TestRoot): ReturnType<Engine['createTestPlan']>;
|
|
11
|
-
export declare function createTestPlanFromTestFiles(options: Parameters<Engine['createTestPlanFromTestFiles']>[0]): ReturnType<Engine['createTestPlanFromTestFiles']>;
|
|
12
|
-
export declare function execute(testPlan: Parameters<Engine['execute']>[0], options?: Parameters<Engine['execute']>[1]): ReturnType<Engine['execute']>;
|
|
13
|
-
export declare function ownsTestNode(value: unknown): value is TestNode;
|
|
14
|
-
export type { Engine } from '../../engine/engine.ts';
|
|
15
|
-
export type { Execute, ExecuteExecution, ExecuteOptions } from '../../engine/execution.ts';
|
|
16
|
-
export type { ExecuteResultFinalizer } from '../../engine/execution-options.ts';
|
|
17
|
-
export type { CoverageArtifact, CoverageArtifactPayload, CoverageMetric, CoverageReportFile, CoverageRunnerErrorCause, CoverageThresholdFailure } from '../../engine/coverage-artifact.ts';
|
|
18
|
-
export type { TestPlanFromTestFilesFactory, TestPlanFromTestFilesOptions } from '../../engine/test-plan.ts';
|
|
19
|
-
export { formatCaseId } from '../../engine/identity.ts';
|
|
20
|
-
export type { CaseId, RuntimeDimensions, RuntimeId, RuntimeScenarioBindings, TestId, WorkId, WorkloadId } from '../../engine/identity.ts';
|
|
21
|
-
export type { DefinedReporter, DirectorySinkDeclaration, FileSinkDeclaration, FinalResultReporter, MemorySinkDeclaration, ManagedStandardOutputSinkDeclaration, RealTimeReporter, Reporter, ReporterEvent, RunFacts, SinkDeclaration, RawStandardOutputSinkDeclaration, StandardOutputSinkDeclaration, StreamSinkDeclaration } from '../../engine/reporter.ts';
|
|
22
|
-
export type { ReporterDispatcher, ReporterDispatcherDependencies } from '../../engine/reporter-dispatcher.ts';
|
|
23
|
-
export type { ReportingContext } from '../../engine/reporting-context.ts';
|
|
24
|
-
export { formatAssertionSourceLocations, formatDefinitionLocations, formatSourceLocation, relativizeSourceLocationPath } from '../../engine/reporting-context.ts';
|
|
25
|
-
export { defineReporter, isReporter, ReporterSinkConflictError, validateReporterSinks } from '../../engine/reporter.ts';
|
|
26
|
-
export { createPlainOutputRenderer, defineOutputRenderer, isOutputRenderer } from '../../engine/reporter-output.ts';
|
|
27
|
-
export type { DefinedOutputRenderer, OutputIntentAnnotation, OutputIntentRole, OutputIntentSeverity, OutputLineIntent, OutputLineWriter, OutputRenderer, ReporterOutput } from '../../engine/reporter-output.ts';
|
|
28
|
-
export type { AssertAssertionFacade } from '../../engine/assertion-facade.ts';
|
|
29
|
-
export type { InFlightTask } from '../../engine/async-control.ts';
|
|
30
|
-
export type { RequireAssertionFacade } from '../../engine/require-assertion-facade.ts';
|
|
31
|
-
export type { AssertionOptions, AssertionSource, DeepComparable, FailedCheck, FailedCompositeCheck, FailedForeignCheck, FailedLeafCheck, InstanceConstructor, KnownSourceLocation, NonEmptyReadonlyArray, ResolvableSourceLocation, ResolvableSourceLocations, SourceLocationProvider, SourceLocation, UnknownSourceLocation } from '../../assertion-protocol/assertion-node-shape.ts';
|
|
32
|
-
export type { ArrayDiffOperation, ByteDiffRange, Diff, DiffPathSegment, Hunk, MapDiffOperation, ObjectDiffOperation, SetDiffOperation } from '../../diff/diff-shape.ts';
|
|
33
|
-
export { defaultSerializationBudget, serializeValue, serializeValueWithBudget } from '../../compare/serialized-value.ts';
|
|
34
|
-
export type { SerializationBudget, SerializedMapEntry, SerializedProperty, SerializedPropertyKey, SerializedValue, SerializationTruncation } from '../../compare/serialized-value.ts';
|
|
35
|
-
export { captureSourceLocation, resolveSourceLocation, unknownSourceLocation } from '../../assertion-protocol/source-location.ts';
|
|
36
|
-
export { forwardAssertionSourceLocations } from '../../assertion-protocol/source-location-forwarding.ts';
|
|
37
|
-
export type { ErrorMatcher, ExactThrownMatcher, SynchronousCallback, ThrownAssertionObservation, ThrownMatcher } from '../../assertion-protocol/thrown-matcher.ts';
|
|
38
|
-
export type { FalseAssertionNode, TrueAssertionNode } from '../../assertion-protocol/assertions/boolean.ts';
|
|
39
|
-
export type { EmptinessAssertionNode, LengthAssertionNode } from '../../assertion-protocol/assertions/collection.ts';
|
|
40
|
-
export type { DeepEqualAssertionNode, EqualAssertionNode, NotDeepEqualAssertionNode, NotEqualAssertionNode } from '../../assertion-protocol/assertions/equality.ts';
|
|
41
|
-
export type { FailAssertionNode } from '../../assertion-protocol/assertions/fail.ts';
|
|
42
|
-
export type { BetweenAssertionNode, NumericComparisonAssertionNode } from '../../assertion-protocol/assertions/numeric.ts';
|
|
43
|
-
export type { ArrayContainsPartialAssertionNode, MembersPartialDeepEqualAssertionNode, PartialDeepEqualAssertionNode } from '../../assertion-protocol/assertions/partial.ts';
|
|
44
|
-
export type { DefinedAssertionNode, NotNullAssertionNode, NullAssertionNode, UndefinedAssertionNode } from '../../assertion-protocol/assertions/presence.ts';
|
|
45
|
-
export type { MatchAssertionNode, StringContainsAssertionNode } from '../../assertion-protocol/assertions/string.ts';
|
|
46
|
-
export type { HasPropertyAssertionNode, InstanceOfAssertionNode, TypeAssertionNode } from '../../assertion-protocol/assertions/type-shape.ts';
|
|
47
|
-
export type { AssertionTestFailure, BodyErrorTestFailure, CaseRunnerErrorOptions, CapturedOutputArtifact, CapturedOutputArtifactPayload, CoverageRunnerError, FailOutcome, HedgedConflictArtifact, HedgedConflictArtifactPayload, HedgedConflictEvidence, HedgedDuplicateConflictFailure, InconclusiveOutcome, OrphanedNode, PassOutcome, PerTestResult, ResourceUsageSnapshot, RunArtifact, RunArtifactId, RunArtifactScope, RunResourceUsage, RunResourceUsageTracker, RunPlanStatus, RunResult, RunnerError, RunSummary, SkipOutcome, SuiteRunCounts, TestContractFailure, TestContractFailureCode, TestFailure, TestOutcome } from '../../engine/run-result.ts';
|
|
48
|
-
export type { AmbientNoiseEstimate, ResourceScope, RunPreciseTimingReport, RunTimingAggregate, RunTimingObservationWindow, RunTimings, RunTimingSpan, RunTimingSpanKind, RunTimingSummary, TimingCollectionOverhead, TimingSpanStatus } from '../../engine/run-timings.ts';
|
|
49
|
-
export type { AssertAssertionNode, AssertionNode, AssertionResult, CompositeAssertionChildNode, CompositeAssertionNode, ForeignAssertionNode, ForeignAssertionResult, RequireAssertionNode } from '../../assertion-protocol/assertion-node.ts';
|
|
50
|
-
export type { BuilderTestCaseExecution, TestScopeAssertContext, RootOptions, BodyTestCaseExecution, Suite, SkippedTestCaseExecution, SkippedTestCaseOptions, SuiteOptions, Table, TableCase, TableCaseOptions, TableOptions, TestBody, TestCase, TestCaseExecution, TestCaseOptions, DefinitionLocations, TestRoot, TestScope, TestNode, ThrowingTestBody, ThrowingTestCaseExecution, ThrowingTestCaseOptions, ThrowingTestScope } from '../../engine/test-node.ts';
|
|
51
|
-
export { stampTestNodeFamily, testNodeFamily } from '../../engine/test-node.ts';
|
|
52
|
-
export { attachTestBodyResourceAttachments, hasAttachedResourceDescriptors, hasTestBodyResourceAttachments, readTestBodyResourceAttachments } from '../../engine/test-body-resource-attachment.ts';
|
|
53
|
-
export { CaseRunnerError, isCaseRunnerError, isPermissionDeniedRunnerError } from '../../engine/run-result.ts';
|
|
54
|
-
export type { PermissionDeniedRunnerError, PermissionDeniedRunnerErrorCause } from '../../engine/run-result.ts';
|
|
55
|
-
export type { ResourceAttachedTestBody, ResourceFreeTestBody, TestBodyDirectResourceAttachmentSummary, TestBodyExecutionRequirementSummary, TestBodyLeafRuntimeSummary, TestBodyResourceAttachments, TestBodyResourceSummary, TestBodyRuntimeScenarioBindingSummary, TestBodyRuntimeSummary, TestBodyScenarioSlotSummary } from '../../engine/test-body-resource-attachment.ts';
|
|
56
|
-
export type { CaptureMode, DuplicateExecutionControl, TestAnnotations, TestAnnotationsInput, TestControls, TestControlsInput, TestFamily } from '../../engine/test-data.ts';
|
|
57
|
-
export type { TestPlan, TestPlanCase, TestPlanCaseBody, TestPlanCaseExecution } from '../../engine/test-plan.ts';
|
|
58
|
-
//# sourceMappingURL=engine.entry-point.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":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,EACzB,eAAe,EACf,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACb,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACR,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACxB,MAAM,2BAA2B,CAAC"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { createClock } from '@enormora/clock';
|
|
2
|
-
import { createEngineWithOwner } from "../../engine/engine.js";
|
|
3
|
-
import { createExecute } from "../../engine/execution.js";
|
|
4
|
-
import { createReporterDispatcher } from "../../engine/reporter-dispatcher.js";
|
|
5
|
-
import { createTestNodeOwner, defaultTestNodeOwner } from "../../engine/test-node.js";
|
|
6
|
-
function writeStdoutLine(line) {
|
|
7
|
-
process.stdout.write(`${line}\n`);
|
|
8
|
-
}
|
|
9
|
-
function writeStderrLine(line) {
|
|
10
|
-
process.stderr.write(`${line}\n`);
|
|
11
|
-
}
|
|
12
|
-
function readActiveResourceTypes() {
|
|
13
|
-
return process.getActiveResourcesInfo();
|
|
14
|
-
}
|
|
15
|
-
function createEngineDependencies() {
|
|
16
|
-
const wallClock = createClock();
|
|
17
|
-
return {
|
|
18
|
-
execute: createExecute({
|
|
19
|
-
asyncLeakDiagnostics: 'enabled',
|
|
20
|
-
readActiveResourceTypes,
|
|
21
|
-
reporterDispatcher: createReporterDispatcher({
|
|
22
|
-
stderr: { writeLine: writeStderrLine },
|
|
23
|
-
stdout: { writeLine: writeStdoutLine },
|
|
24
|
-
wallClock
|
|
25
|
-
}),
|
|
26
|
-
wallClock
|
|
27
|
-
}),
|
|
28
|
-
wallClock
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
export function createEngine() {
|
|
32
|
-
return createEngineWithOwner(createEngineDependencies(), createTestNodeOwner());
|
|
33
|
-
}
|
|
34
|
-
const defaultEngine = createEngineWithOwner(createEngineDependencies(), defaultTestNodeOwner());
|
|
35
|
-
export function createRoot(options) {
|
|
36
|
-
return defaultEngine.createRoot(options);
|
|
37
|
-
}
|
|
38
|
-
export function createSuite(options) {
|
|
39
|
-
return defaultEngine.createSuite(options);
|
|
40
|
-
}
|
|
41
|
-
export function createSkippedTestCase(options) {
|
|
42
|
-
return defaultEngine.createSkippedTestCase(options);
|
|
43
|
-
}
|
|
44
|
-
export function createTable(options) {
|
|
45
|
-
return defaultEngine.createTable(options);
|
|
46
|
-
}
|
|
47
|
-
export function createTestCase(options) {
|
|
48
|
-
return defaultEngine.createTestCase(options);
|
|
49
|
-
}
|
|
50
|
-
export function createThrowingTestCase(options) {
|
|
51
|
-
return defaultEngine.createThrowingTestCase(options);
|
|
52
|
-
}
|
|
53
|
-
export function createTestPlan(root) {
|
|
54
|
-
return defaultEngine.createTestPlan(root);
|
|
55
|
-
}
|
|
56
|
-
export function createTestPlanFromTestFiles(options) {
|
|
57
|
-
return defaultEngine.createTestPlanFromTestFiles(options);
|
|
58
|
-
}
|
|
59
|
-
export async function execute(testPlan, options) {
|
|
60
|
-
return await defaultEngine.execute(testPlan, options);
|
|
61
|
-
}
|
|
62
|
-
export function ownsTestNode(value) {
|
|
63
|
-
return defaultEngine.ownsTestNode(value);
|
|
64
|
-
}
|
|
65
|
-
export { formatCaseId } from "../../engine/identity.js";
|
|
66
|
-
export { formatAssertionSourceLocations, formatDefinitionLocations, formatSourceLocation, relativizeSourceLocationPath } from "../../engine/reporting-context.js";
|
|
67
|
-
export { defineReporter, isReporter, ReporterSinkConflictError, validateReporterSinks } from "../../engine/reporter.js";
|
|
68
|
-
export { createPlainOutputRenderer, defineOutputRenderer, isOutputRenderer } from "../../engine/reporter-output.js";
|
|
69
|
-
export { defaultSerializationBudget, serializeValue, serializeValueWithBudget } from "../../compare/serialized-value.js";
|
|
70
|
-
export { captureSourceLocation, resolveSourceLocation, unknownSourceLocation } from "../../assertion-protocol/source-location.js";
|
|
71
|
-
export { forwardAssertionSourceLocations } from "../../assertion-protocol/source-location-forwarding.js";
|
|
72
|
-
export { stampTestNodeFamily, testNodeFamily } from "../../engine/test-node.js";
|
|
73
|
-
export { attachTestBodyResourceAttachments, hasAttachedResourceDescriptors, hasTestBodyResourceAttachments, readTestBodyResourceAttachments } from "../../engine/test-body-resource-attachment.js";
|
|
74
|
-
export { CaseRunnerError, isCaseRunnerError, isPermissionDeniedRunnerError } from "../../engine/run-result.js";
|
|
75
|
-
//# sourceMappingURL=engine.entry-point.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"engine.entry-point.js","sourceRoot":"","sources":["../../../../../source/packages/engine/engine.entry-point.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EACH,qBAAqB,EAGxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EACH,mBAAmB,EACnB,oBAAoB,EASvB,MAAM,2BAA2B,CAAC;AAEnC,SAAS,eAAe,CAAC,IAAY;IACjC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,eAAe,CAAC,IAAY;IACjC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC;AACtC,CAAC;AAED,SAAS,uBAAuB;IAC5B,OAAO,OAAO,CAAC,sBAAsB,EAAE,CAAC;AAC5C,CAAC;AAED,SAAS,wBAAwB;IAC7B,MAAM,SAAS,GAAG,WAAW,EAAE,CAAC;IAEhC,OAAO;QACH,OAAO,EAAE,aAAa,CAAC;YACnB,oBAAoB,EAAE,SAAS;YAC/B,uBAAuB;YACvB,kBAAkB,EAAE,wBAAwB,CAAC;gBACzC,MAAM,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE;gBACtC,MAAM,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE;gBACtC,SAAS;a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AC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAc;IACvC,OAAO,aAAa,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;AAC7C,CAAC;AAiBD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA4BxD,OAAO,EACH,8BAA8B,EAC9B,yBAAyB,EACzB,oBAAoB,EACpB,4BAA4B,EAC/B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACH,cAAc,EACd,UAAU,EACV,yBAAyB,EACzB,qBAAqB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACH,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EACnB,MAAM,iCAAiC,CAAC;AAyCzC,OAAO,EACH,0BAA0B,EAC1B,cAAc,EACd,wBAAwB,EAC3B,MAAM,mCAAmC,CAAC;AAS3C,OAAO,EACH,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,+BAA+B,EAAE,MAAM,wDAAwD,CAAC;AA8HzG,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EACH,iCAAiC,EACjC,8BAA8B,EAC9B,8BAA8B,EAC9B,+BAA+B,EAClC,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACH,eAAe,EACf,iBAAiB,EACjB,6BAA6B,EAChC,MAAM,4BAA4B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-definition-brand.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-definition-brand.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAE,OAAO,MAA8C,CAAC"}
|