@overkill-dev/run 0.0.61 → 0.0.63
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 +1 -7
- package/assertion-protocol/source-location-forwarding.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/case-execution.d.ts +1 -14
- package/engine/case-execution.d.ts.map +1 -1
- package/engine/coverage-artifact.d.ts +2 -3
- 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-global-error-observer.d.ts +0 -3
- package/engine/execution-global-error-observer.d.ts.map +1 -1
- package/engine/execution-global-error-observer.js +1 -31
- package/engine/execution-global-error-observer.js.map +1 -1
- package/engine/execution-options.d.ts +0 -6
- package/engine/execution-options.d.ts.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-supervision.d.ts +0 -16
- package/engine/execution-supervision.d.ts.map +1 -1
- package/engine/execution.d.ts +1 -12
- package/engine/execution.d.ts.map +1 -1
- package/engine/identity.d.ts +0 -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-output.d.ts +0 -6
- package/engine/reporter-output.d.ts.map +1 -1
- package/engine/reporter.d.ts +0 -16
- package/engine/reporter.d.ts.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/run-result.d.ts +1 -57
- package/engine/run-result.d.ts.map +1 -1
- 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/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 +6 -2
- package/packages/run/config.entry-point.d.ts +3 -2
- package/packages/run/config.entry-point.d.ts.map +1 -1
- package/packages/run/config.entry-point.js +2 -1
- package/packages/run/config.entry-point.js.map +1 -1
- package/packages/run/run.entry-point.d.ts +2 -2
- package/packages/run/run.entry-point.d.ts.map +1 -1
- package/readme.md +5 -1
- package/reporters/human-reporter-rendering.js +2 -2
- package/reporters/human-reporter-rendering.js.map +1 -1
- package/reporters/line-reporter.js +4 -10
- package/reporters/line-reporter.js.map +1 -1
- package/reporters/run-summary-rendering.js +23 -0
- package/reporters/run-summary-rendering.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 +2 -75
- 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/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 +2 -5
- package/run/command-line-command.d.ts.map +1 -1
- package/run/command-line-command.js +1 -2
- package/run/command-line-command.js.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-config-schema.d.ts +50 -0
- package/run/coverage-config-schema.d.ts.map +1 -0
- package/run/coverage-config-schema.js +36 -0
- package/run/coverage-config-schema.js.map +1 -0
- package/run/coverage-paths.js +5 -0
- package/run/coverage-paths.js.map +1 -0
- package/run/coverage-reporting.js +6 -139
- package/run/coverage-reporting.js.map +1 -1
- package/run/coverage-session.js +1 -2
- package/run/coverage-session.js.map +1 -1
- 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/placement-trace.d.ts +0 -18
- package/run/placement-trace.d.ts.map +1 -1
- package/run/profile-config-normalization.js +136 -0
- package/run/profile-config-normalization.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-state.d.ts +0 -3
- package/run/resource-lifecycle-state.d.ts.map +1 -1
- package/run/run-collection-source.d.ts +1 -5
- package/run/run-collection-source.d.ts.map +1 -1
- package/run/run-config-defaults.js +13 -0
- package/run/run-config-defaults.js.map +1 -1
- package/run/run-config-schema.d.ts +51 -4
- package/run/run-config-schema.d.ts.map +1 -1
- package/run/run-config-schema.js +2 -0
- package/run/run-config-schema.js.map +1 -1
- package/run/run-config.d.ts +6 -5
- package/run/run-config.d.ts.map +1 -1
- package/run/run-config.js +12 -88
- package/run/run-config.js.map +1 -1
- package/run/run-coverage.js +12 -1
- 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 +10 -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 +3 -2
- package/run/run-errors.d.ts.map +1 -1
- package/run/run-errors.js +6 -0
- package/run/run-errors.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 +1 -2
- package/run/run-if-main-profile.d.ts.map +1 -1
- package/run/run-if-main-profile.js +1 -1
- package/run/run-if-main-profile.js.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-local-command.js +2 -1
- package/run/run-local-command.js.map +1 -1
- package/run/run-orchestrator-dependencies.d.ts +1 -6
- 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-selection-filters.d.ts +2 -11
- package/run/run-selection-filters.d.ts.map +1 -1
- package/run/run-supervised-process.js +1 -0
- package/run/run-supervised-process.js.map +1 -1
- package/run/run-support.js +19 -0
- 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 +21 -1
- 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.map +1 -1
- package/run/supervised-child.js +4 -36
- package/run/supervised-child.js.map +1 -1
- package/run/supervised-run-runtime.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-run.js +1 -7
- package/run/worker-pool-run.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.map +1 -1
- package/run/worker-pool-worker-resources.js.map +1 -1
- package/run/worker-pool-worker.js +1 -1
- package/run/worker-pool-worker.js.map +1 -1
- package/sbom.cdx.json +5 -5
- 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
|
@@ -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"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,aAAa,EAElB,KAAK,2BAA2B,EAGnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAER,WAAW,EAId,MAAM,2BAA2B,CAAC;AAInC,KAAK,wBAAwB,GAAG;IAC5B,QAAQ,CAAC,oBAAoB,EAAE,wBAAwB,CAAC;IACxD,QAAQ,CAAC,SAAS,EAAE,YAAY,CAAC;IACjC,QAAQ,CAAC,uBAAuB,EAAE,4BAA4B,CAAC;IAC/D,QAAQ,CAAC,YAAY,EAAE,gBAAgB,CAAC;IACxC,QAAQ,CAAC,gBAAgB,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Forwarding(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,MAAM,gBAAgB,GAAG;IAC3B,QAAQ,CAAC,oBAAoB,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,WAAW,GAAG,IAAI,CAAC;IAC9E,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IAC/F,QAAQ,CAAC,IAAI,EAAE,MAAM,IAAI,CAAC;CAC7B,CAAC;AAEF,wBAAgB,8BAA8B,IAAI,gBAAgB,CAYjE;AAED,KAAK,uBAAuB,GAAG;IAC3B,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1C,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;CACnC,CAAC;AAWF,KAAK,uBAAuB,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC,OAAO,CAAC,CAAC;CACpD,CAAC;AA4CF,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,uBAAuB,GAAG,WAAW,GAAG,IAAI,CA2B1F;AA+CD,wBAAgB,sBAAsB,IAAI,gBAAgB,CA8DzD"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { AssertAssertionNode, RequireAssertionNode } from '../assertion-protocol/assertion-node.ts';
|
|
2
|
-
import type { ResolvableSourceLocations } 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,CAAC;AAYjD,OAAO,KAAK,EAGR,yBAAyB,EAC5B,MAAM,+CAA+C,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAI3D,KAAK,0BAA0B,GAAG;IAC9B,QAAQ,CAAC,OAAO,EAAE,CAAC,SAAS,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAC9D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,KAAK,CAAC;IAC/D,QAAQ,CAAC,YAAY,EAAE,CAAC,SAAS,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,CAAC,YAAY,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,KAAK,CAAC;IAC/D,QAAQ,CAAC,aAAa,EAAE,CAAC,SAAS,EAAE,oBAAoB,KAAK,IAAI,CAAC;CACrE,CAAC;AAqCF,KAAK,6BAA6B,GAAG;IACjC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,SAAS,OAAO,EAAE,CAAC;IACxC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC;AAEF,KAAK,8BAA8B,GAAG;IAClC,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,UAAU,EAAE,SAAS,OAAO,EAAE,CAAC;IACxC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,oBAAoB,CAAC;IACpC,QAAQ,CAAC,eAAe,EAAE,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execution-async-leak-policy.d.ts","sourceRoot":"","sources":["../../../../source/engine/execution-async-leak-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,KAAK,gBAAgB,EACxB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAuB,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,SAAS,CAAC;AAE1D,MAAM,MAAM,qBAAqB,GAAG;IAChC,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,uBAAuB,EAAE,MAAM,SAAS,MAAM,EAAE,CAAC;CAC7D,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,CAAC,YAAY,EAAE,cAAc,CAAC;IACtC,QAAQ,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACnC,QAAQ,CAAC,yBAAyB,EAAE,SAAS,MAAM,EAAE,CAAC;IACtD,QAAQ,CAAC,YAAY,EAAE,qBAAqB,CAAC;IAC7C,QAAQ,CAAC,YAAY,EAAE,cAAc,CAAC;IACtC,QAAQ,CAAC,0BAA0B,EAAE,OAAO,CAAC;IAC7C,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;CACnC,CAAC;AAQF,wBAAgB,+BAA+B,CAAC,WAAW,EAAE,oBAAoB,GAAG,gBAAgB,CAInG;AAyBD,wBAAsB,uBAAuB,CAAC,KAAK,EAAE,wBAAwB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAoC5G;AAED,wBAAgB,+BAA+B,CAC3C,YAAY,EAAE,qBAAqB,EACnC,yBAAyB,EAAE,SAAS,MAAM,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,MAAM,iBAAiB,CAAC;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,CAAC,MAAM,EAAE,aAAa,CAAC;IAC/B,QAAQ,CAAC,YAAY,EAAE,SAAS,WAAW,EAAE,CAAC;IAC9C,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IACzB,QAAQ,CAAC,QAAQ,EAAE,CAAC,YAAY,EAAE,uBAAuB,KAAK,IAAI,CAAC;IACnE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,IAAI,CAAC;IAC3B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,GAAG,IAAI,CAAC;IAC7D,QAAQ,CAAC,qBAAqB,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IAC/B,QAAQ,CAAC,eAAe,EAAE,MAAM,OAAO,CAAC;IACxC,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACtD,QAAQ,CAAC,aAAa,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IACtE,QAAQ,CAAC,iBAAiB,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IACzD,QAAQ,CAAC,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,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 } 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, 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":3,"file":"engine.entry-point.d.ts","sourceRoot":"","sources":["../../../../../source/packages/engine/engine.entry-point.ts"],"names":[],"mappings":"AACA,OAAO,EAEH,KAAK,MAAM,EAEd,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAGH,KAAK,WAAW,EAChB,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,uBAAuB,EAC/B,MAAM,2BAA2B,CAAC;AAgCnC,wBAAgB,YAAY,IAAI,MAAM,CAErC;AAID,wBAAgB,UAAU,CAAC,OAAO,EAAE,WAAW,GAAG,UAAU,CAAC,MAA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,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,yBAAyB,EACzB,uBAAuB,EACvB,iBAAiB,EACpB,MAAM,2BAA2B,CAAC;AACnC,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;AACpC,YAAY,EACR,2BAA2B,EAC3B,gCAAgC,EACnC,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACR,wBAAwB,EACxB,oBAAoB,EACpB,uCAAuC,EACvC,mCAAmC,EACnC,0BAA0B,EAC1B,2BAA2B,EAC3B,uBAAuB,EACvB,qCAAqC,EACrC,sBAAsB,EACtB,2BAA2B,EAC9B,MAAM,+CAA+C,CAAC;AACvD,YAAY,EACR,WAAW,EACX,yBAAyB,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,aA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,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;AA6HzG,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"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type AnyResourceDefinition, type Awaitable, type ResourceCreationContext, type ResourceDependencies, type ResourceDisposalContext, type ResourceScenarioSlots } from './resources.ts';
|
|
2
|
-
export type ResourceEntry = readonly [string, AnyResourceDefinition];
|
|
3
|
-
export type ResourceNode = {
|
|
4
|
-
readonly dependencies: readonly ResourceNode[];
|
|
5
|
-
readonly descriptor: AnyResourceDefinition;
|
|
6
|
-
};
|
|
7
|
-
export type ResourceGraph = {
|
|
8
|
-
readonly order: readonly ResourceNode[];
|
|
9
|
-
readonly topLevelEntries: readonly ResourceEntry[];
|
|
10
|
-
};
|
|
11
|
-
type DependencyDisposalContext = ResourceDisposalContext<ResourceDependencies, ResourceScenarioSlots>;
|
|
12
|
-
export type ResourceDisposeCallback = (handle: unknown, context: DependencyDisposalContext) => Awaitable<void>;
|
|
13
|
-
export type CallableResourceDefinition = AnyResourceDefinition & {
|
|
14
|
-
readonly acquire: (context: ResourceCreationContext<ResourceDependencies, ResourceScenarioSlots>) => Awaitable<unknown>;
|
|
15
|
-
readonly dispose: ResourceDisposeCallback | null;
|
|
16
|
-
};
|
|
17
|
-
export declare function resourceEntries(resources: ResourceDependencies): readonly ResourceEntry[];
|
|
18
|
-
export declare function resourceDependencyScopeAllowed(resource: Pick<AnyResourceDefinition, 'scope'>, dependency: Pick<AnyResourceDefinition, 'scope'>): boolean;
|
|
19
|
-
export declare function callableResourceDefinition(resource: AnyResourceDefinition): CallableResourceDefinition;
|
|
20
|
-
export declare function createResourceGraph(resources: ResourceDependencies): ResourceGraph;
|
|
21
|
-
export declare function assertPerCaseResourceGraph(resources: ResourceDependencies): void;
|
|
22
|
-
export declare function assertResourceDependencyScopes(resources: ResourceDependencies): void;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=resource-graph.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-graph.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-graph.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EAEd,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAE7B,MAAM,gBAAgB,CAAC;AAaxB,MAAM,MAAM,aAAa,GAAG,SAAS,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;AACrE,MAAM,MAAM,YAAY,GAAG;IACvB,QAAQ,CAAC,YAAY,EAAE,SAAS,YAAY,EAAE,CAAC;IAC/C,QAAQ,CAAC,UAAU,EAAE,qBAAqB,CAAC;CAC9C,CAAC;AACF,MAAM,MAAM,aAAa,GAAG;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IACxC,QAAQ,CAAC,eAAe,EAAE,SAAS,aAAa,EAAE,CAAC;CACtD,CAAC;AACF,KAAK,yBAAyB,GAAG,uBAAuB,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,CAAC;AACtG,MAAM,MAAM,uBAAuB,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,yBAAyB,KAAK,SAAS,CAAC,IAAI,CAAC,CAAC;AAC/G,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,GAAG;IAC7D,QAAQ,CAAC,OAAO,EAAE,CACd,OAAO,EAAE,uBAAuB,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,KAC5E,SAAS,CAAC,OAAO,CAAC,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,uBAAuB,GAAG,IAAI,CAAC;CACpD,CAAC;AAQF,wBAAgB,eAAe,CAAC,SAAS,EAAE,oBAAoB,GAAG,SAAS,aAAa,EAAE,CAEzF;AA4BD,wBAAgB,8BAA8B,CAC1C,QAAQ,EAAE,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC,EAC9C,UAAU,EAAE,IAAI,CAAC,qBAAqB,EAAE,OAAO,CAAC,GACjD,OAAO,CAaT;AAMD,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,qBAAqB,GAAG,0BAA0B,CAQtG;AAiFD,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,oBAAoB,GAAG,aAAa,CAElF;AAED,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,CAuBhF;AAED,wBAAgB,8BAA8B,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,CAwBpF"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { AnyResourceDefinition, ResourceDependencies } from './resource-definition-shape.ts';
|
|
2
|
-
import { type EmptyResourceScenarioSlots, type ResourceScenarioSlot, type ResourceScenarioSlots } from './resource-scenario.ts';
|
|
3
|
-
type UnionToIntersection<Value> = (Value extends unknown ? (value: Value) => void : never) extends (value: infer Intersection) => void ? Intersection : never;
|
|
4
|
-
type ScenarioDepth = 'eight' | 'five' | 'four' | 'one' | 'seven' | 'six' | 'stop' | 'three' | 'two';
|
|
5
|
-
type PreviousScenarioDepth = {
|
|
6
|
-
readonly eight: 'seven';
|
|
7
|
-
readonly five: 'four';
|
|
8
|
-
readonly four: 'three';
|
|
9
|
-
readonly one: 'stop';
|
|
10
|
-
readonly seven: 'six';
|
|
11
|
-
readonly six: 'five';
|
|
12
|
-
readonly stop: 'stop';
|
|
13
|
-
readonly three: 'two';
|
|
14
|
-
readonly two: 'one';
|
|
15
|
-
};
|
|
16
|
-
type DependencyScenarioSlots<Dependencies extends ResourceDependencies, Depth extends ScenarioDepth> = string extends keyof Dependencies ? EmptyResourceScenarioSlots : ResourceScenarioSlotsFromResources<Dependencies[keyof Dependencies], PreviousScenarioDepth[Depth]>;
|
|
17
|
-
type ResourceScenarioSlotsFromDependencies<Dependencies extends ResourceDependencies, Depth extends ScenarioDepth> = Depth extends 'stop' ? EmptyResourceScenarioSlots : DependencyScenarioSlots<Dependencies, Depth>;
|
|
18
|
-
type ResourceScenarioSlotsFromResource<Resource, Depth extends ScenarioDepth> = Resource extends {
|
|
19
|
-
readonly dependencies: infer Dependencies extends ResourceDependencies;
|
|
20
|
-
readonly scenarios: infer Scenarios extends ResourceScenarioSlots;
|
|
21
|
-
} ? ResourceScenarioSlotsFromDependencies<Dependencies, Depth> & Scenarios : EmptyResourceScenarioSlots;
|
|
22
|
-
type ResourceScenarioSlotsFromResources<Resources, Depth extends ScenarioDepth> = [Resources] extends [never] ? EmptyResourceScenarioSlots : UnionToIntersection<ResourceScenarioSlotsFromResource<Resources, Depth>>;
|
|
23
|
-
export type ResourceMapScenarioSlots<Resources extends ResourceDependencies> = ResourceScenarioSlotsFromResources<Resources[keyof Resources], 'eight'> extends infer Scenarios extends ResourceScenarioSlots ? Scenarios : EmptyResourceScenarioSlots;
|
|
24
|
-
export type ResourceScenarioOwner = {
|
|
25
|
-
readonly path: readonly string[];
|
|
26
|
-
readonly resource: AnyResourceDefinition;
|
|
27
|
-
readonly slot: ResourceScenarioSlot;
|
|
28
|
-
};
|
|
29
|
-
export type ResolvedResourceScenarioBindings = Readonly<Record<string, string>>;
|
|
30
|
-
export declare function resourceScenarioOwners(resources: ResourceDependencies): ReadonlyMap<string, ResourceScenarioOwner>;
|
|
31
|
-
export declare function sourceResourceDefinition(resource: AnyResourceDefinition): AnyResourceDefinition;
|
|
32
|
-
export declare function bindResourceScenarios(resource: AnyResourceDefinition, bindings: ResolvedResourceScenarioBindings): AnyResourceDefinition;
|
|
33
|
-
export declare function resolvedResourceScenarioBindings(resource: AnyResourceDefinition): ResolvedResourceScenarioBindings;
|
|
34
|
-
export declare function acquisitionResourceScenarioBindings(resource: AnyResourceDefinition): ResolvedResourceScenarioBindings;
|
|
35
|
-
export declare function exposeResourceHandle(resource: AnyResourceDefinition, handle: unknown): unknown;
|
|
36
|
-
export {};
|
|
37
|
-
//# sourceMappingURL=resource-scenario-binding.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource-scenario-binding.d.ts","sourceRoot":"","sources":["../../../../source/resources/resource-scenario-binding.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAClG,OAAO,EAGH,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC7B,MAAM,wBAAwB,CAAC;AAEhC,KAAK,mBAAmB,CAAC,KAAK,IAAI,CAC9B,KAAK,SAAS,OAAO,GAAG,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,KAAK,CACzD,SAAS,CAAC,KAAK,EAAE,MAAM,YAAY,KAAK,IAAI,GAAG,YAAY,GAAG,KAAK,CAAC;AAErE,KAAK,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;AACpG,KAAK,qBAAqB,GAAG;IACzB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC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