@overkill-dev/run 0.0.62 → 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 +0 -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-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 -62
- package/engine/run-result.d.ts.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 +5 -2
- package/reporters/human-reporter-rendering.js +2 -2
- package/reporters/human-reporter-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 +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-reporting.js +6 -188
- package/run/coverage-reporting.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/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-schema.d.ts +0 -4
- package/run/run-config-schema.d.ts.map +1 -1
- package/run/run-config.d.ts +0 -1
- package/run/run-config.d.ts.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 +0 -2
- package/run/run-errors.d.ts.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-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-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 +0 -1
- package/run/run-types.d.ts.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
|
@@ -14,14 +14,6 @@ type ForeignAssertionErrorRecord = {
|
|
|
14
14
|
readonly stack: string | null;
|
|
15
15
|
readonly thrown: unknown;
|
|
16
16
|
};
|
|
17
|
-
type RequireAssertionNodeByName = {
|
|
18
|
-
readonly defined: DefinedAssertionNode<'require'>;
|
|
19
|
-
readonly hasProperty: HasPropertyAssertionNode<'require'>;
|
|
20
|
-
readonly instanceOf: InstanceOfAssertionNode<'require'>;
|
|
21
|
-
readonly notNull: NotNullAssertionNode<'require'>;
|
|
22
|
-
readonly null: NullAssertionNode<'require'>;
|
|
23
|
-
readonly type: TypeAssertionNode<'require'>;
|
|
24
|
-
};
|
|
25
17
|
type BuiltInAssertAssertionNodeByName<Source extends AssertionSource> = {
|
|
26
18
|
readonly arrayContainsPartial: ArrayContainsPartialAssertionNode<Source>;
|
|
27
19
|
readonly between: BetweenAssertionNode<Source>;
|
|
@@ -84,14 +76,7 @@ export type CompositeAssertionNode<Source extends AssertionSource = AssertionSou
|
|
|
84
76
|
readonly sourceLocations: NonEmptyReadonlyArray<ResolvableSourceLocation>;
|
|
85
77
|
readonly summary: string;
|
|
86
78
|
};
|
|
87
|
-
type RequireAssertionNodeByKind = RequireAssertionNodeByName & {
|
|
88
|
-
readonly composite: CompositeAssertionNode<'require'>;
|
|
89
|
-
};
|
|
90
|
-
export type RequireAssertionNode = RequireAssertionNodeByKind[keyof RequireAssertionNodeByKind];
|
|
91
79
|
export type AssertAssertionNode = BuiltInAssertAssertionNode | CompositeAssertionNode<'assert'>;
|
|
92
|
-
export type AssertionNode = AssertAssertionNode | RequireAssertionNode;
|
|
93
80
|
export type AssertionResult = AssertAssertionNode | NonEmptyReadonlyArray<AssertAssertionNode>;
|
|
94
|
-
type SummarizedAssertionNode = AssertionNode | CompositeAssertionChildNode | CompositeAssertionNode;
|
|
95
|
-
export declare function assertionSummary(assertion: SummarizedAssertionNode): string;
|
|
96
81
|
export {};
|
|
97
82
|
//# sourceMappingURL=assertion-node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-node.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/assertion-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjH,OAAO,EAEH,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAsB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAEH,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACtC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEH,KAAK,iCAAiC,EACtC,KAAK,oCAAoC,EACzC,KAAK,6BAA6B,EACrC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEH,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEH,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EACnC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEH,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACR,eAAe,EACf,qBAAqB,EACrB,wBAAwB,EAC3B,MAAM,2BAA2B,CAAC;AAEnC,KAAK,2BAA2B,GAAG;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"assertion-node.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/assertion-node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjH,OAAO,EAEH,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EAC3B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEH,KAAK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,MAAM,2BAA2B,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IACpF,iCAAiC,CAAC,MAAM,CAAC,CAAC,MAAM,iCAAiC,CAAC,MAAM,CAAC,CAAC,CAAC;AAE/F,MAAM,MAAM,sBAAsB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACnF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9E,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,qBAAqB,CAAC,wBAAwB,CAAC,CAAC;IAC1E,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC5B,CAAC;MAMI,4BAE4B,0BAA0B,GAAG,sBAAsB,CAAC,QAAQ,CAAC,CAAC;AAEhG,MAAM,MAAM,SAAsC,MAEvB,GAAG,mBAAmB,GAAG,qBAAqB,CAAC,mBAAmB,CAAC,CAAC"}
|
|
@@ -18,7 +18,6 @@ type CompositeAssertionReturnByKind<Source extends AssertionSource> = {
|
|
|
18
18
|
export type CompositeAssertionReturn<Source extends AssertionSource = AssertionSource> = CompositeAssertionReturnByKind<Source>[keyof CompositeAssertionReturnByKind<Source>];
|
|
19
19
|
type PromiseCompositeAssertionReturn = Promise<CompositeAssertionReturn<'assert'>>;
|
|
20
20
|
export type AssertCompositeAssertionReturn = CompositeAssertionReturn<'assert'> | PromiseCompositeAssertionReturn;
|
|
21
|
-
type SyncAssertionReturn = ReturnType<() => void>;
|
|
22
21
|
export type CompositeAssertionSummaryFormatter<Arguments extends readonly unknown[]> = (context: CompositeAssertionSummaryContext, ...parameters: Arguments) => string;
|
|
23
22
|
export type NarrowingCompositeAssertionSummaryFormatter<Actual, Arguments extends readonly unknown[]> = (context: CompositeAssertionSummaryContext, actual: Actual, ...parameters: Arguments) => string;
|
|
24
23
|
export type CompositeAssertionRunnerInput<Arguments extends readonly unknown[], Source extends AssertionSource> = {
|
|
@@ -39,7 +38,6 @@ export type NarrowingCompositeAssertionReferenceRecord<Actual = unknown, Narrowe
|
|
|
39
38
|
readonly name: string;
|
|
40
39
|
readonly narrows: (actual: Actual, ...parameters: Arguments) => actual is Narrowed;
|
|
41
40
|
};
|
|
42
|
-
export type AssertionReferenceRecord = CompositeAssertionReferenceRecord | NarrowingCompositeAssertionReferenceRecord;
|
|
43
41
|
export type CompositeAssertionReference<Arguments extends readonly unknown[] = readonly unknown[], Result extends AssertCompositeAssertionReturn = AssertCompositeAssertionReturn> = {
|
|
44
42
|
readonly [assertionReferenceIdentity]: true;
|
|
45
43
|
readonly [assertionReferenceRecordIdentity]: CompositeAssertionReferenceRecord<Arguments, Result>;
|
|
@@ -48,24 +46,5 @@ export type NarrowingCompositeAssertionReference<Actual = unknown, Narrowed exte
|
|
|
48
46
|
readonly [assertionReferenceIdentity]: true;
|
|
49
47
|
readonly [assertionReferenceRecordIdentity]: NarrowingCompositeAssertionReferenceRecord<Actual, Narrowed, Arguments>;
|
|
50
48
|
};
|
|
51
|
-
export type AssertionReference = CompositeAssertionReference | NarrowingCompositeAssertionReference;
|
|
52
|
-
type NarrowingReferenceArguments<Actual, Arguments extends readonly unknown[]> = readonly [
|
|
53
|
-
actual: Actual,
|
|
54
|
-
...parameters: Arguments
|
|
55
|
-
];
|
|
56
|
-
type ReferenceArguments<Reference> = Reference extends NarrowingCompositeAssertionReference<infer Actual, infer Narrowed, infer Arguments> ? NarrowingReferenceArguments<Actual | Narrowed, Arguments> : never;
|
|
57
|
-
type ReferenceReturn<Result> = Result extends Promise<CompositeAssertionReturn<'assert'>> ? Promise<void> : SyncAssertionReturn;
|
|
58
|
-
type ReadonlyParameters<Arguments extends readonly unknown[]> = readonly [...Arguments];
|
|
59
|
-
export type AssertReferenceArguments<Reference> = Reference extends CompositeAssertionReference<infer Arguments> ? ReadonlyParameters<Arguments> : ReferenceArguments<Reference>;
|
|
60
|
-
export type AssertReferenceReturn<Reference> = Reference extends CompositeAssertionReference<infer Arguments, infer Result> ? Arguments extends readonly unknown[] ? ReferenceReturn<Result> : never : SyncAssertionReturn;
|
|
61
|
-
export declare function createCompositeAssertionReferenceRecord<Arguments extends readonly unknown[], Result extends AssertCompositeAssertionReturn>(record: CompositeAssertionReferenceRecord<Arguments, Result>): CompositeAssertionReference<Arguments, Result>;
|
|
62
|
-
export declare function createNarrowingCompositeAssertionReferenceRecord<Actual, Narrowed extends Actual, Arguments extends readonly unknown[]>(record: NarrowingCompositeAssertionReferenceRecord<Actual, Narrowed, Arguments>): NarrowingCompositeAssertionReference<Actual, Narrowed, Arguments>;
|
|
63
|
-
export declare function getAssertionReferenceRecord(reference: AssertionReference): AssertionReferenceRecord;
|
|
64
|
-
export declare function getCompositeAssertionReferenceRecord<Arguments extends readonly unknown[], Result extends AssertCompositeAssertionReturn>(reference: CompositeAssertionReference<Arguments, Result>): CompositeAssertionReferenceRecord<Arguments, Result>;
|
|
65
|
-
export declare function getNarrowingAssertionReferenceRecord<Actual, Narrowed extends Actual, Arguments extends readonly unknown[]>(reference: NarrowingCompositeAssertionReference<Actual, Narrowed, Arguments>): NarrowingCompositeAssertionReferenceRecord<Actual, Narrowed, Arguments>;
|
|
66
|
-
export declare function isAssertionReference(value: unknown): value is AssertionReference;
|
|
67
|
-
export declare function isNarrowingAssertionReference(value: unknown): value is NarrowingCompositeAssertionReference;
|
|
68
|
-
export declare function isCompositeAssertionGroup<Source extends AssertionSource>(value: unknown): value is CompositeAssertionGroup<Source>;
|
|
69
|
-
export declare function createCompositeAssertionGroup<Source extends AssertionSource>(children: NonEmptyReadonlyArray<CompositeAssertionChildNode<Source>>): CompositeAssertionGroup<Source>;
|
|
70
49
|
export {};
|
|
71
50
|
//# sourceMappingURL=assertion-reference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-reference.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/assertion-reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,2BAA2B,EAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACR,eAAe,EACf,qBAAqB,EACrB,yBAAyB,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,QAAA,MAAM,0BAA0B,EAAE,OAAO,MAAiD,CAAC;AAC3F,QAAA,MAAM,gCAAgC,EAAE,OAAO,MAAuD,CAAC;AACvG,QAAA,MAAM,sBAAsB,EAAE,OAAO,MAA6C,CAAC;AAEnF,MAAM,MAAM,gCAAgC,GAAG;IAC3C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,uBAAuB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACpF,QAAQ,CAAC,CAAC,sBAAsB,CAAC,EAAE,IAAI,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC;CACjF,CAAC;AAEF,KAAK,8BAA8B,CAAC,MAAM,SAAS,eAAe,IAAI;IAClE,QAAQ,CAAC,KAAK,EAAE,2BAA2B,CAAC,MAAM,CAAC,CAAC;IACpD,QAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,8BAA8B,CACnH,MAAM,CACT,CAAC,MAAM,8BAA8B,CAAC,MAAM,CAAC,CAAC,CAAC;AAEhD,KAAK,+BAA+B,GAAG,OAAO,C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B,QAAQ,SAAS,MAAM,GAAG,MAAM,EAChC,SAAS,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,IACzD;IACA,QAAQ,CAAC,aAAa,EAAE,2CAA2C,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC;IAC9F,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,UAAU,EAAE,SAAS,KAAK,MAAM,IAAI,QAAQ,CAAC;CACtF,CAAC;AAEF,MAAM,MAAiC,2BAEA,CACnC,SAAS,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,EACzD,MAAM,SAAS,8BAA8B,GAAG,8BAA8B,IAC9E;IACA,QAAQ,CAAC,CAAC,0BAA0B,CAAC,EAAE,IAAI,CAAC;IAC5C,QAAQ,CAAC,CAAC,gCAAgC,CAAC,EAAE,iCAAiC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;CACrG,CAAC;AAEF,MAAM,MAAM,oCAAoC,CAC5C,MAAM,GAAG,OAAO,EAChB,QAAQ,SAAS,MAAM,GAAG,MAAM,EAChC,SAAS,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,OAAO,EAAE,IACzD;IACA,QAAQ,CAAC,CAAC,0BAA0B,CAAC,EAAE,IAAI,CAAC;IAC5C,QAAQ,CAAC,CAAC,gCAAgC,CAAC,EAAE,0CAA0C,CACnF,MAAM,EACN,QAAQ,EACR,SAAS,CACZ,CAAC;CACL,CAAC;AAEF,MAAM"}
|
|
@@ -1,36 +1,11 @@
|
|
|
1
1
|
const assertionReferenceIdentity = Symbol.for('OverkillAssertionReference');
|
|
2
2
|
const assertionReferenceRecordIdentity = Symbol.for('OverkillAssertionReferenceRecord');
|
|
3
3
|
const compositeGroupIdentity = Symbol.for('OverkillCompositeGroup');
|
|
4
|
-
|
|
5
|
-
if (name.trim().length === 0) {
|
|
6
|
-
throw new TypeError('Assertion reference name must not be empty.');
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
function createAssertionReference(record) {
|
|
10
|
-
ensureAssertionName(record.name);
|
|
11
|
-
if (record.kind === 'composite') {
|
|
12
|
-
return {
|
|
13
|
-
[assertionReferenceIdentity]: true,
|
|
14
|
-
[assertionReferenceRecordIdentity]: record
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
[assertionReferenceIdentity]: true,
|
|
19
|
-
[assertionReferenceRecordIdentity]: record
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export function createCompositeAssertionReferenceRecord(record) {
|
|
23
|
-
return createAssertionReference({ ...record });
|
|
24
|
-
}
|
|
25
|
-
export function createNarrowingCompositeAssertionReferenceRecord(record) {
|
|
26
|
-
return createAssertionReference({ ...record });
|
|
27
|
-
}
|
|
4
|
+
|
|
28
5
|
export function getAssertionReferenceRecord(reference) {
|
|
29
6
|
return reference[assertionReferenceRecordIdentity];
|
|
30
7
|
}
|
|
31
|
-
|
|
32
|
-
return reference[assertionReferenceRecordIdentity];
|
|
33
|
-
}
|
|
8
|
+
|
|
34
9
|
export function getNarrowingAssertionReferenceRecord(reference) {
|
|
35
10
|
return reference[assertionReferenceRecordIdentity];
|
|
36
11
|
}
|
|
@@ -43,7 +18,5 @@ export function isNarrowingAssertionReference(value) {
|
|
|
43
18
|
export function isCompositeAssertionGroup(value) {
|
|
44
19
|
return typeof value === 'object' && value !== null && Object.hasOwn(value, compositeGroupIdentity);
|
|
45
20
|
}
|
|
46
|
-
|
|
47
|
-
return { [compositeGroupIdentity]: true, children };
|
|
48
|
-
}
|
|
21
|
+
|
|
49
22
|
//# sourceMappingURL=assertion-reference.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-reference.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/assertion-reference.ts"],"names":[],"mappings":"AASA,MAAM,0BAA0B,GAAkB,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC3F,MAAM,gCAAgC,GAAkB,MAAM,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;AACvG,MAAM,sBAAsB,GAAkB,MAAM,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"assertion-reference.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/assertion-reference.ts"],"names":[],"mappings":"AASA,MAAM,0BAA0B,GAAkB,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;AAC3F,MAAM,gCAAgC,GAAkB,MAAM,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC;AACvG,MAAM,sBAAsB,GAAkB,MAAM,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;;MA0J7E,qCAiBqC,CAAC,SAA6B;IACrE,OAAO,SAAS,CAAC,gCAAgC,CAAC,CAAC;AACvD,CAAC;;MAWK,UAAU,oCAAoC,CAKhD,SAA4E;IAE5E,OAAO,SAAS,CAAC,gCAAgC,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,KAAc;IAC/C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAC;AAC3G,CAAC;AAED,MAAM,UAAU,6BAA6B,CAAC,KAAc;IACxD,OAAO,oBAAoB,CAAC,KAAK,CAAC,IAAI,2BAA2B,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,qBAAqB,CAAC;AAC5G,CAAC;AAED,MAAM,UAAU,yBAAyB,CACrC,KAAc;IAEd,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,sBAAsB,CAAC,CAAC;AACvG,CAAC"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { type AssertionOutcome } from '../assertion-evaluation.ts';
|
|
2
1
|
import type { ActualAssertionNode, AssertionSource } from '../assertion-node-shape.ts';
|
|
3
2
|
export type TrueAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'true'>;
|
|
4
3
|
export type FalseAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'false'>;
|
|
5
|
-
export declare const booleanSummaryByCheck: {
|
|
6
|
-
readonly false: "Expected value to be false.";
|
|
7
|
-
readonly true: "Expected value to be true.";
|
|
8
|
-
};
|
|
9
|
-
export declare function evaluateFalse(assertion: FalseAssertionNode): AssertionOutcome;
|
|
10
|
-
export declare function evaluateTrue(assertion: TrueAssertionNode): AssertionOutcome;
|
|
11
4
|
//# sourceMappingURL=boolean.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/boolean.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"boolean.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/boolean.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEvF,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtH,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type AssertionOutcome } from '../assertion-evaluation.ts';
|
|
2
1
|
import type { ActualAssertionNode, AssertionSource, ResolvableSourceLocations } from '../assertion-node-shape.ts';
|
|
3
2
|
export type LengthAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
4
3
|
readonly actual: unknown;
|
|
@@ -11,12 +10,4 @@ export type LengthAssertionNode<Source extends AssertionSource = AssertionSource
|
|
|
11
10
|
export type EmptinessAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
12
11
|
readonly [Check in 'empty' | 'not-empty']: ActualAssertionNode<Source, Check>;
|
|
13
12
|
}['empty' | 'not-empty'];
|
|
14
|
-
export declare const collectionSummaryByCheck: {
|
|
15
|
-
readonly empty: "Expected collection to be empty.";
|
|
16
|
-
readonly length: "Expected collection length to match.";
|
|
17
|
-
readonly 'not-empty': "Expected collection not to be empty.";
|
|
18
|
-
};
|
|
19
|
-
export declare function evaluateEmpty(assertion: EmptinessAssertionNode): AssertionOutcome;
|
|
20
|
-
export declare function evaluateLength(assertion: LengthAssertionNode): AssertionOutcome;
|
|
21
|
-
export declare function evaluateNotEmpty(assertion: EmptinessAssertionNode): AssertionOutcome;
|
|
22
13
|
//# sourceMappingURL=collection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/collection.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/collection.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,mBAAmB,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAGlH,MAAM,MAAM,mBAAmB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IAChF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACnF,QAAQ,EAAE,KAAK,IAAI,OAAO,GAAG,WAAW,GAAG,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC;CAChF,CAAC,OAAO,GAAG,WAAW,CAAC,CAAC"}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import { type AssertionOutcome } from '../assertion-evaluation.ts';
|
|
2
1
|
import type { AssertionSource, ExpectedAssertionNode } from '../assertion-node-shape.ts';
|
|
3
2
|
export type EqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'equal'>;
|
|
4
3
|
export type NotEqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'not-equal'>;
|
|
5
4
|
export type DeepEqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'deep-equal'>;
|
|
6
5
|
export type NotDeepEqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'not-deep-equal'>;
|
|
7
|
-
export declare const equalitySummaryByCheck: {
|
|
8
|
-
readonly 'deep-equal': "Expected values to be deeply equal.";
|
|
9
|
-
readonly equal: "Expected values to be equal.";
|
|
10
|
-
readonly 'not-deep-equal': "Expected values not to be deeply equal.";
|
|
11
|
-
readonly 'not-equal': "Expected values not to be equal.";
|
|
12
|
-
};
|
|
13
|
-
export declare function evaluateDeepEqual(assertion: DeepEqualAssertionNode): AssertionOutcome;
|
|
14
|
-
export declare function evaluateEqual(assertion: EqualAssertionNode): AssertionOutcome;
|
|
15
|
-
export declare function evaluateNotDeepEqual(assertion: NotDeepEqualAssertionNode): AssertionOutcome;
|
|
16
|
-
export declare function evaluateNotEqual(assertion: NotEqualAssertionNode): AssertionOutcome;
|
|
17
6
|
//# sourceMappingURL=equality.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equality.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/equality.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"equality.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/equality.ts"],"names":[],"mappings":"AAKA,OAA8C,KAClC,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEzF,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CACpG,MAAM,EACN,OAAO,CACV,CAAC;AAEF,MAAM,MAAM,qBAAqB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CACvG,MAAM,EACN,WAAW,CACd,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CACxG,MAAM,EACN,YAAY,CACf,CAAC;AAEF,MAAM,MAAM,yBAAyB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CAC3G,MAAM,EACN,gBAAgB,CACnB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type AssertionOutcome } from '../assertion-evaluation.ts';
|
|
2
1
|
import type { AssertionSource, ResolvableSourceLocations } from '../assertion-node-shape.ts';
|
|
3
2
|
export type FailAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
4
3
|
readonly check: 'fail';
|
|
@@ -6,8 +5,4 @@ export type FailAssertionNode<Source extends AssertionSource = AssertionSource>
|
|
|
6
5
|
readonly source: Source;
|
|
7
6
|
readonly sourceLocations: ResolvableSourceLocations;
|
|
8
7
|
};
|
|
9
|
-
export declare const failSummaryByCheck: {
|
|
10
|
-
readonly fail: "Assertion failed.";
|
|
11
|
-
};
|
|
12
|
-
export declare function evaluateFail(assertion: FailAssertionNode): AssertionOutcome;
|
|
13
8
|
//# sourceMappingURL=fail.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/fail.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/fail.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAE7F,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IAC9E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type AssertionOutcome } from '../assertion-evaluation.ts';
|
|
2
1
|
import type { AssertionSource, ExpectedAssertionNode, ResolvableSourceLocations } from '../assertion-node-shape.ts';
|
|
3
2
|
type NumericComparisonCheck = 'greater-than' | 'greater-than-or-equal' | 'less-than' | 'less-than-or-equal';
|
|
4
3
|
export type NumericComparisonAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
@@ -13,17 +12,5 @@ export type BetweenAssertionNode<Source extends AssertionSource = AssertionSourc
|
|
|
13
12
|
readonly source: Source;
|
|
14
13
|
readonly sourceLocations: ResolvableSourceLocations;
|
|
15
14
|
};
|
|
16
|
-
export declare const numericSummaryByCheck: {
|
|
17
|
-
readonly between: "Expected number to be between the bounds.";
|
|
18
|
-
readonly 'greater-than': "Expected number to be greater than the threshold.";
|
|
19
|
-
readonly 'greater-than-or-equal': "Expected number to be greater than or equal to the threshold.";
|
|
20
|
-
readonly 'less-than': "Expected number to be less than the threshold.";
|
|
21
|
-
readonly 'less-than-or-equal': "Expected number to be less than or equal to the threshold.";
|
|
22
|
-
};
|
|
23
|
-
export declare function evaluateBetween(assertion: BetweenAssertionNode): AssertionOutcome;
|
|
24
|
-
export declare function evaluateGreaterThan(assertion: NumericComparisonAssertionNode): AssertionOutcome;
|
|
25
|
-
export declare function evaluateGreaterThanOrEqual(assertion: NumericComparisonAssertionNode): AssertionOutcome;
|
|
26
|
-
export declare function evaluateLessThan(assertion: NumericComparisonAssertionNode): AssertionOutcome;
|
|
27
|
-
export declare function evaluateLessThanOrEqual(assertion: NumericComparisonAssertionNode): AssertionOutcome;
|
|
28
15
|
export {};
|
|
29
16
|
//# sourceMappingURL=numeric.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"numeric.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/numeric.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"numeric.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/numeric.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,eAAe,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEpH,KAAK,sBAAsB,GAAG,cAAc,GAAG,uBAAuB,GAAG,WAAW,GAAG,oBAAoB,CAAC;AAE5G,MAAM,MAAM,8BAA8B,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IAC3F,QAAQ,EAAE,KAAK,IAAI,sBAAsB,GAAG,qBAAqB,CAAC,MAAM,EAAE,KAAK,CAAC;CACnF,CAAC,sBAAsB,CAAC,CAAC;AAE1B,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACjF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC;AAEF,SAMU,CAAC"}
|
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
import { type AssertionOutcome } from '../assertion-evaluation.ts';
|
|
2
1
|
import type { AssertionSource, ExpectedAssertionNode } from '../assertion-node-shape.ts';
|
|
3
2
|
export type PartialDeepEqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'partial-deep-equal'>;
|
|
4
3
|
export type ArrayContainsPartialAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'array-contains-partial'>;
|
|
5
4
|
export type MembersPartialDeepEqualAssertionNode<Source extends AssertionSource = AssertionSource> = ExpectedAssertionNode<Source, 'members-partial-deep-equal'>;
|
|
6
|
-
export declare const partialSummaryByCheck: {
|
|
7
|
-
readonly 'array-contains-partial': "Expected array to contain a partial member.";
|
|
8
|
-
readonly 'members-partial-deep-equal': "Expected array to contain the partial members.";
|
|
9
|
-
readonly 'partial-deep-equal': "Expected value to partially match.";
|
|
10
|
-
};
|
|
11
|
-
export declare function evaluateArrayContainsPartial(assertion: ArrayContainsPartialAssertionNode): AssertionOutcome;
|
|
12
|
-
export declare function evaluateMembersPartialDeepEqual(assertion: MembersPartialDeepEqualAssertionNode): AssertionOutcome;
|
|
13
|
-
export declare function evaluatePartialDeepEqual(assertion: PartialDeepEqualAssertionNode): AssertionOutcome;
|
|
14
5
|
//# sourceMappingURL=partial.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partial.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/partial.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"partial.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/partial.ts"],"names":[],"mappings":"AAKA,OAA4B,KAChB,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEzF,MAAM,MAAM,6BAA6B,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CAC/G,MAAM,EACN,oBAAoB,CACvB,CAAC;AAEF,MAAM,MAAM,iCAAiC,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,qBAAqB,CACnH,MAAM,EACN,wBAAwB,CAC3B,CAAC;AAEF,MAAM,MAAM,oCAAoC,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAC7F,qBAAqB,CAAC,MAAM,EAAE,4BAA4B,CAAC,CAAC"}
|
|
@@ -1,17 +1,6 @@
|
|
|
1
|
-
import { type AssertionOutcome } from '../assertion-evaluation.ts';
|
|
2
1
|
import type { ActualAssertionNode, AssertionSource } from '../assertion-node-shape.ts';
|
|
3
2
|
export type DefinedAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'defined'>;
|
|
4
3
|
export type NullAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'null'>;
|
|
5
4
|
export type NotNullAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'not-null'>;
|
|
6
5
|
export type UndefinedAssertionNode<Source extends AssertionSource = AssertionSource> = ActualAssertionNode<Source, 'undefined'>;
|
|
7
|
-
export declare const presenceSummaryByCheck: {
|
|
8
|
-
readonly defined: "Expected value to be defined.";
|
|
9
|
-
readonly 'not-null': "Expected value not to be null.";
|
|
10
|
-
readonly null: "Expected value to be null.";
|
|
11
|
-
readonly undefined: "Expected value to be undefined.";
|
|
12
|
-
};
|
|
13
|
-
export declare function evaluateDefined(assertion: DefinedAssertionNode): AssertionOutcome;
|
|
14
|
-
export declare function evaluateNotNull(assertion: NotNullAssertionNode): AssertionOutcome;
|
|
15
|
-
export declare function evaluateNull(assertion: NullAssertionNode): AssertionOutcome;
|
|
16
|
-
export declare function evaluateUndefined(assertion: UndefinedAssertionNode): AssertionOutcome;
|
|
17
6
|
//# sourceMappingURL=presence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/presence.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"presence.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/presence.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAEvF,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CACpG,MAAM,EACN,SAAS,CACZ,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEtH,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CACpG,MAAM,EACN,UAAU,CACb,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI,mBAAmB,CACtG,MAAM,EACN,WAAW,CACd,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type AssertionOutcome } from '../assertion-evaluation.ts';
|
|
2
1
|
import type { AssertionSource, ExpectedAssertionNode, ResolvableSourceLocations } from '../assertion-node-shape.ts';
|
|
3
2
|
export type MatchAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
4
3
|
readonly [Check in 'match' | 'not-match']: {
|
|
@@ -13,16 +12,4 @@ export type MatchAssertionNode<Source extends AssertionSource = AssertionSource>
|
|
|
13
12
|
export type StringContainsAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
14
13
|
readonly [Check in 'ends-with' | 'includes' | 'starts-with']: ExpectedAssertionNode<Source, Check>;
|
|
15
14
|
}['ends-with' | 'includes' | 'starts-with'];
|
|
16
|
-
export declare const stringSummaryByCheck: {
|
|
17
|
-
readonly 'ends-with': "Expected string to end with the value.";
|
|
18
|
-
readonly includes: "Expected string to include the value.";
|
|
19
|
-
readonly match: "Expected string to match the pattern.";
|
|
20
|
-
readonly 'not-match': "Expected string not to match the pattern.";
|
|
21
|
-
readonly 'starts-with': "Expected string to start with the value.";
|
|
22
|
-
};
|
|
23
|
-
export declare function evaluateEndsWith(assertion: StringContainsAssertionNode): AssertionOutcome;
|
|
24
|
-
export declare function evaluateIncludes(assertion: StringContainsAssertionNode): AssertionOutcome;
|
|
25
|
-
export declare function evaluateMatch(assertion: MatchAssertionNode): AssertionOutcome;
|
|
26
|
-
export declare function evaluateNotMatch(assertion: MatchAssertionNode): AssertionOutcome;
|
|
27
|
-
export declare function evaluateStartsWith(assertion: StringContainsAssertionNode): AssertionOutcome;
|
|
28
15
|
//# sourceMappingURL=string.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/string.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/string.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EAAE,eAAe,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEpH,MAAM,MAAM,kBAAkB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IAC/E,QAAQ,EAAE,KAAK,IAAI,OAAO,GAAG,WAAW,GAAG;QACvC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;QACzB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;QACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;QAChC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;KACvD;CACJ,CAAC,OAAO,GAAG,WAAW,CAAC,CAAC;AAEzB,MAAM,MAAM,2BAA2B,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACxF,QAAQ,EAAE,KAAK,IAAI,WAAW,GAAG,UAAU,GAAG,aAAa,GAAG,qBAAqB,CAAC,MAAM,EAAE,KAAK,CAAC;CACrG,CAAC,WAAW,GAAG,UAAU,GAAG,aAAa,CAAC,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type AssertionOutcome } from '../assertion-evaluation.ts';
|
|
2
1
|
import type { ActualAssertionNode, AssertionSource, InstanceConstructor, ResolvableSourceLocations } from '../assertion-node-shape.ts';
|
|
3
2
|
type TypeAssertionCheck = 'array' | 'boolean' | 'function' | 'number' | 'object' | 'string';
|
|
4
3
|
export type TypeAssertionNode<Source extends AssertionSource = AssertionSource> = {
|
|
@@ -20,23 +19,5 @@ export type HasPropertyAssertionNode<Source extends AssertionSource = AssertionS
|
|
|
20
19
|
readonly source: Source;
|
|
21
20
|
readonly sourceLocations: ResolvableSourceLocations;
|
|
22
21
|
};
|
|
23
|
-
export declare const typeShapeSummaryByCheck: {
|
|
24
|
-
readonly array: "Expected value to be an array.";
|
|
25
|
-
readonly boolean: "Expected value to be a boolean.";
|
|
26
|
-
readonly function: "Expected value to be a function.";
|
|
27
|
-
readonly 'has-property': "Expected object to have the own property.";
|
|
28
|
-
readonly 'instance-of': "Expected value to be an instance of the constructor.";
|
|
29
|
-
readonly number: "Expected value to be a number.";
|
|
30
|
-
readonly object: "Expected value to be an object.";
|
|
31
|
-
readonly string: "Expected value to be a string.";
|
|
32
|
-
};
|
|
33
|
-
export declare function evaluateArray(assertion: TypeAssertionNode): AssertionOutcome;
|
|
34
|
-
export declare function evaluateBoolean(assertion: TypeAssertionNode): AssertionOutcome;
|
|
35
|
-
export declare function evaluateFunction(assertion: TypeAssertionNode): AssertionOutcome;
|
|
36
|
-
export declare function evaluateHasProperty(assertion: HasPropertyAssertionNode): AssertionOutcome;
|
|
37
|
-
export declare function evaluateInstanceOf(assertion: InstanceOfAssertionNode): AssertionOutcome;
|
|
38
|
-
export declare function evaluateNumber(assertion: TypeAssertionNode): AssertionOutcome;
|
|
39
|
-
export declare function evaluateObject(assertion: TypeAssertionNode): AssertionOutcome;
|
|
40
|
-
export declare function evaluateString(assertion: TypeAssertionNode): AssertionOutcome;
|
|
41
22
|
export {};
|
|
42
23
|
//# sourceMappingURL=type-shape.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-shape.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/type-shape.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"type-shape.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/type-shape.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EACR,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAC5B,MAAM,4BAA4B,CAAC;AAGpC,KAAK,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5F,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IAC9E,QAAQ,EAAE,KAAK,IAAI,kBAAkB,GAAG,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC;CAC7E,CAAC,kBAAkB,CAAC,CAAC;AAEtB,MAAM,MAAM,uBAAuB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACpF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACrF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC;AAEF,SASU,CAAC"}
|
|
@@ -16,11 +16,5 @@ export function sourceLocationsWithCurrentForwarding(captureLocation) {
|
|
|
16
16
|
assertNonEmptySourceLocations(sourceLocations);
|
|
17
17
|
return sourceLocations;
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
assertNonEmptySourceLocations(sourceLocations);
|
|
21
|
-
return assertionSourceLocationStorage.run([
|
|
22
|
-
...readActiveSourceLocations(),
|
|
23
|
-
...sourceLocations
|
|
24
|
-
], body);
|
|
25
|
-
}
|
|
19
|
+
|
|
26
20
|
//# sourceMappingURL=source-location-forwarding.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-location-forwarding.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/source-location-forwarding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAMrD,MAAM,8BAA8B,GAAG,IAAI,iBAAiB,EAAuC,CAAC;AAEpG,SAAS,yBAAyB;IAC9B,OAAO,8BAA8B,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC3D,CAAC;AAED,SAAS,6BAA6B,CAClC,eAAoD;IAEpD,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,SAAS,CAAC,sEAAsE,CAAC,CAAC;IAChG,CAAC;AACL,CAAC;AAED,MAAM,UAAU,oCAAoC,CAChD,eAA+C;IAE/C,MAAM,eAAe,GAAG;QACpB,GAAG,yBAAyB,EAAE;QAC9B,eAAe,EAAE;KACpB,CAAC;IAEF,6BAA6B,CAAC,eAAe,CAAC,CAAC;IAE/C,OAAO,eAAe,CAAC;AAC3B,CAAC
|
|
1
|
+
{"version":3,"file":"source-location-forwarding.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/source-location-forwarding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAMrD,MAAM,8BAA8B,GAAG,IAAI,iBAAiB,EAAuC,CAAC;AAEpG,SAAS,yBAAyB;IAC9B,OAAO,8BAA8B,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC3D,CAAC;AAED,SAAS,6BAA6B,CAClC,eAAoD;IAEpD,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,SAAS,CAAC,sEAAsE,CAAC,CAAC;IAChG,CAAC;AACL,CAAC;AAED,MAAM,UAAU,oCAAoC,CAChD,eAA+C;IAE/C,MAAM,eAAe,GAAG;QACpB,GAAG,yBAAyB,EAAE;QAC9B,eAAe,EAAE;KACpB,CAAC;IAEF,6BAA6B,CAAC,eAAe,CAAC,CAAC;IAE/C,OAAO,eAAe,CAAC;AAC3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thrown-error-record.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-error-record.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC5B,CAAC
|
|
1
|
+
{"version":3,"file":"thrown-error-record.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-error-record.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC5B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { AssertionSource, InstanceConstructor, NonEmptyReadonlyArray, ResolvableSourceLocations } from './assertion-node-shape.ts';
|
|
1
|
+
import type { InstanceConstructor } from './assertion-node-shape.ts';
|
|
3
2
|
type OptionalFields<Shape, RequiredKey extends keyof Shape> = {
|
|
4
3
|
readonly [ShapeKey in keyof Shape as ShapeKey extends RequiredKey ? never : ShapeKey]?: Shape[ShapeKey];
|
|
5
4
|
};
|
|
@@ -31,21 +30,5 @@ export type ErrorMatcher = RequireAtLeastOne<ErrorMatcherFields> & {
|
|
|
31
30
|
export type ThrownMatcher = ErrorMatcher | ExactThrownMatcher;
|
|
32
31
|
type NonPromise<Body extends () => unknown> = ReturnType<Body> extends PromiseLike<unknown> ? never : Body;
|
|
33
32
|
export type SynchronousCallback<Body extends () => unknown> = [ReturnType<Body>] extends [never] ? Body : NonPromise<Body>;
|
|
34
|
-
type ThrownAssertionKind = 'rejects' | 'throws';
|
|
35
|
-
type ObservationStatus = 'rejected' | 'resolved' | 'returned' | 'threw';
|
|
36
|
-
export type ThrownAssertionObservation = {
|
|
37
|
-
readonly status: ObservationStatus;
|
|
38
|
-
readonly value: unknown;
|
|
39
|
-
};
|
|
40
|
-
type ThrownAssertionInput<Source extends AssertionSource> = {
|
|
41
|
-
readonly kind: ThrownAssertionKind;
|
|
42
|
-
readonly matcher: ThrownMatcher;
|
|
43
|
-
readonly message: string | null;
|
|
44
|
-
readonly observation: ThrownAssertionObservation;
|
|
45
|
-
readonly source: Source;
|
|
46
|
-
readonly sourceLocations: ResolvableSourceLocations;
|
|
47
|
-
};
|
|
48
|
-
export declare function thrownMatcherChildren<Source extends AssertionSource>(input: ThrownAssertionInput<Source>): NonEmptyReadonlyArray<CompositeAssertionChildNode<Source>>;
|
|
49
|
-
export declare function createThrownMatcherAssertion<Source extends AssertionSource>(input: ThrownAssertionInput<Source>): CompositeAssertionNode<Source>;
|
|
50
33
|
export {};
|
|
51
34
|
//# sourceMappingURL=thrown-matcher.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thrown-matcher.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-matcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"thrown-matcher.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-matcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAMR,qBAGH,MAAM,2BAA2B,CAAC;AAEnC,KAAK,cAAc,CAAC,KAAK,EAAE,WAAW,SAAS,MAAM,KAAK,IAAI;IAC1D,QAAQ,EAAE,QAAQ,IAAI,MAAM,KAAK,IAAI,QAAQ,SAAS,WAAW,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;CAC1G,CAAC;AAEF,KAAK,aAAa,CAAC,KAAK,EAAE,WAAW,SAAS,MAAM,KAAK,IAAI;IACzD,QAAQ,EAAE,QAAQ,IAAI,WAAW,CAAC,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC;CACxD,CAAC;AAEF,KAAK,iBAAiB,CAAC,KAAK,EAAE,GAAG,SAAS,MAAM,KAAK,GAAG,MAAM,KAAK,IAAI;IACnE,QAAQ,EAAE,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AAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,GACjG,UAAU,CAAC,IAAI,CAAC,CAAC;MAMjB,CAAmC,EAGxC,CAAC"}
|
|
@@ -130,14 +130,5 @@ type SerializedByteViewValue = SerializedBytes & {
|
|
|
130
130
|
type SerializedReferenceValue = SerializedByteViewValue | SerializedCollectionValue | SerializedTypedArrayValue;
|
|
131
131
|
type SerializedRuntimeValue = SerializedBuiltInValue | SerializedErrorValue | SerializedFunctionValue;
|
|
132
132
|
export type SerializedValue = SerializedPrimitiveValue | SerializedReferenceValue | SerializedRuntimeValue;
|
|
133
|
-
export type SerializationBudget = {
|
|
134
|
-
readonly arrayEntries: number;
|
|
135
|
-
readonly depth: number;
|
|
136
|
-
readonly objectEntries: number;
|
|
137
|
-
readonly operandBytes: number;
|
|
138
|
-
readonly stringBytes: number;
|
|
139
|
-
readonly visitedNodes: number;
|
|
140
|
-
};
|
|
141
|
-
export declare const defaultSerializationBudget: SerializationBudget;
|
|
142
133
|
export {};
|
|
143
134
|
//# sourceMappingURL=serialized-value-shape.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialized-value-shape.d.ts","sourceRoot":"","sources":["../../../../source/compare/serialized-value-shape.ts"],"names":[],"mappings":"AAAA,KAAK,0BAA0B,GAAG,eAAe,GAAG,gBAAgB,CAAC;AAErE,KAAK,qBAAqB,GAAG,OAAO,GAAG,kBAAkB,GAAG,cAAc,GAAG,eAAe,CAAC;AAE7F,KAAK,6BAA6B,GAAG,0BAA0B,GAAG,qBAAqB,CAAC;AAExF,MAAM,MAAM,uBAAuB,GAAG;IAClC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,6BAA6B,CAAC;CAClD,CAAC;AAEF,KAAK,2BAA2B,GAAG;IAC/B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,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CAAC;CAC/C,CAAC;AAEF,KAAK,wBAAwB,GAAG,uBAAuB,GAAG,yBAAyB,GAAG,yBAAyB,CAAC;AAEhH,KAAK,sBAAsB,GAAG,sBAAsB,GAAG,oBAAoB,GAAG,uBAAuB,CAAC;AAEtG,MAAM,MAAM,eAAe,GAAG,wBAAwB,GAAG,wBAAwB,GAAG,sBAAsB,CAAC;AAE3G,MAAM,CAA4B,EAOjC,CAAC"}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
export type SerializationTruncation = SerializationTruncationShape;
|
|
1
|
+
import { type SerializedPropertyKey as SerializedPropertyKeyShape, type SerializedValue as SerializedValueShape } from './serialized-value-shape.ts';
|
|
3
2
|
export type SerializedPropertyKey = SerializedPropertyKeyShape;
|
|
4
|
-
export type SerializedProperty = SerializedPropertyShape;
|
|
5
|
-
export type SerializedMapEntry = SerializedMapEntryShape;
|
|
6
3
|
export type SerializedValue = SerializedValueShape;
|
|
7
|
-
export type SerializationBudget = SerializationBudgetShape;
|
|
8
|
-
export declare const defaultSerializationBudget: SerializationBudget;
|
|
9
|
-
export declare function serializeValueWithBudget(value: unknown, budget: SerializationBudget): SerializedValue;
|
|
10
|
-
export declare function serializeValue(value: unknown): SerializedValue;
|
|
11
4
|
//# sourceMappingURL=serialized-value.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialized-value.d.ts","sourceRoot":"","sources":["../../../../source/compare/serialized-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,
|
|
1
|
+
{"version":3,"file":"serialized-value.d.ts","sourceRoot":"","sources":["../../../../source/compare/serialized-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,KAAK,qBAKqB,IAAI,0BAA0B,EACxD,KAAK,eAAe,IAAI,oBAAoB,EAC/C,MAAM,6BAA6B,CAAC;AAuBrC,MAAM,MAAM,qBACqB,GAAG,0BAA0B,CAAC;AAC/D,MAAM,MAAM,eAEe,GAAG,oBAAoB,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { CompositeAssertionReference, CompositeAssertionReturn, NarrowingCompositeAssertionReference } from '../
|
|
2
|
-
import type { AssertionOptions, DeepComparable, InstanceConstructor
|
|
1
|
+
import type { CompositeAssertionReference, CompositeAssertionReturn, NarrowingCompositeAssertionReference } from '../assertion-protocol/assertion-reference.ts';
|
|
2
|
+
import type { AssertionOptions, DeepComparable, InstanceConstructor } from '../assertion-protocol/assertion-node-shape.ts';
|
|
3
3
|
import { type SynchronousCallback, type ThrownMatcher } from '../assertion-protocol/thrown-matcher.ts';
|
|
4
|
-
import { type AssertAssertionSink } from './custom-assertion-recording.ts';
|
|
5
4
|
export type AssertAssertionFacade = {
|
|
6
5
|
<Arguments extends readonly unknown[], Result extends Promise<CompositeAssertionReturn<'assert'>>>(reference: CompositeAssertionReference<Arguments, Result>, ...parameters: Arguments): Promise<void>;
|
|
7
6
|
<Arguments extends readonly unknown[], Result extends CompositeAssertionReturn<'assert'>>(reference: CompositeAssertionReference<Arguments, Result>, ...parameters: Arguments): void;
|
|
@@ -45,6 +44,4 @@ export type AssertAssertionFacade = {
|
|
|
45
44
|
readonly true: (actual: unknown, options?: AssertionOptions) => void;
|
|
46
45
|
readonly undefined: (actual: unknown, options?: AssertionOptions) => void;
|
|
47
46
|
};
|
|
48
|
-
export declare function createRecordingAssertFacadeWithLocation(sink: AssertAssertionSink, annotation: string | null, captureLocation: () => ResolvableSourceLocation): AssertAssertionFacade;
|
|
49
|
-
export declare function createRecordingAssertFacade(sink: AssertAssertionSink, annotation: string | null): AssertAssertionFacade;
|
|
50
47
|
//# sourceMappingURL=assertion-facade.d.ts.map
|