@overkill-dev/engine 0.0.47 → 0.0.48
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/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.d.ts +0 -1
- package/assertion-protocol/source-location-forwarding.d.ts.map +1 -1
- package/assertion-protocol/source-location.d.ts +0 -1
- package/assertion-protocol/source-location.d.ts.map +1 -1
- package/assertion-protocol/thrown-matcher.d.ts +1 -2
- package/assertion-protocol/thrown-matcher.d.ts.map +1 -1
- package/compare/serialized-value-shape.d.ts +0 -1
- package/compare/serialized-value-shape.d.ts.map +1 -1
- package/compare/value-classification.d.ts +0 -23
- package/compare/value-classification.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/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 +0 -10
- package/engine/execution.d.ts.map +1 -1
- package/engine/identity.js +6 -1
- package/engine/identity.js.map +1 -1
- package/engine/reporter-dispatcher.d.ts +0 -4
- package/engine/reporter-dispatcher.d.ts.map +1 -1
- package/engine/reporter-output-scope.js +1 -21
- package/engine/reporter-output-scope.js.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 +0 -20
- package/engine/run-result.d.ts.map +1 -1
- package/engine/run-result.js +1 -12
- 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/run-timings.js +1 -51
- package/engine/run-timings.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 -19
- package/engine/test-node.d.ts.map +1 -1
- package/engine/test-plan.d.ts +1 -3
- package/engine/test-plan.d.ts.map +1 -1
- package/package.json +14 -4
- 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/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
|
@@ -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"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import type { NonEmptyReadonlyArray, ResolvableSourceLocation } from './assertion-node-shape.ts';
|
|
2
|
-
export declare function sourceLocationsWithCurrentForwarding(captureLocation: () => ResolvableSourceLocation): NonEmptyReadonlyArray<ResolvableSourceLocation>;
|
|
3
2
|
export declare function forwardAssertionSourceLocations<Result>(sourceLocations: NonEmptyReadonlyArray<ResolvableSourceLocation>, body: () => Result): Result;
|
|
4
3
|
//# sourceMappingURL=source-location-forwarding.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,uDAa+C,CAAC,MAAM,EAClD,eAAe,EAAE,qBAAqB,CAAC,wBAAwB,CAAC,EAChE,IAAI,EAAE,MAAM,MAAM,GACnB,MAAM,CAOR"}
|
|
@@ -2,7 +2,6 @@ import type { KnownSourceLocation, ResolvableSourceLocation, SourceLocation, Sou
|
|
|
2
2
|
export declare const unknownSourceLocation: SourceLocation;
|
|
3
3
|
export declare function ensureValidSourceLocation(location: SourceLocation): void;
|
|
4
4
|
export declare function ensureKnownSourceLocation(location: SourceLocation): KnownSourceLocation | null;
|
|
5
|
-
export declare function sourceLocationFromStack(stack: string): SourceLocation;
|
|
6
5
|
export declare function captureSourceLocation(): SourceLocationProvider;
|
|
7
6
|
export declare function resolveSourceLocation(location: ResolvableSourceLocation): SourceLocation;
|
|
8
7
|
//# sourceMappingURL=source-location.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,6CAMqC,IAAI,sBAAsB,CAW9D;AAUD,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,wBAAwB,GAAG,cAAc,CAexF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CompositeAssertionChildNode
|
|
1
|
+
import type { CompositeAssertionChildNode } from './assertion-node.ts';
|
|
2
2
|
import type { AssertionSource, InstanceConstructor, NonEmptyReadonlyArray, ResolvableSourceLocations } from './assertion-node-shape.ts';
|
|
3
3
|
type OptionalFields<Shape, RequiredKey extends keyof Shape> = {
|
|
4
4
|
readonly [ShapeKey in keyof Shape as ShapeKey extends RequiredKey ? never : ShapeKey]?: Shape[ShapeKey];
|
|
@@ -46,6 +46,5 @@ type ThrownAssertionInput<Source extends AssertionSource> = {
|
|
|
46
46
|
readonly sourceLocations: ResolvableSourceLocations;
|
|
47
47
|
};
|
|
48
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
49
|
export {};
|
|
51
50
|
//# 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,EACR,
|
|
1
|
+
{"version":3,"file":"thrown-matcher.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-matcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,6BAEH,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACR,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACrB,yBAAyB,EAC5B,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,WAAW,IAAI,GAAG,GAAG,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,aAAa,CAAC,KAAK,EAAE,WAAW,CAAC;CACxG,CAAC,GAAG,CAAC,CAAC;AAEP,KAAK,gBAAgB,GAAG,mBAAmB,GAAG,CAAC,QAAQ,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,KAAK,CAAC,CAAC;AAEzF,KAAK,kBAAkB,GAAG;IACtB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,IAAI,E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,CAAC,MAAM,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,KAAK,uBAAuB,GAAG,eAAe,GAAG;IAC7C,QAAQ,CAAC,IAAI,EAAE,cAAc,GAAG,WAAW,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,MAAM,mBAAmB,GAAG;IAC9B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CACjC,CAAC;AAMF"}
|
|
@@ -1,26 +1,3 @@
|
|
|
1
1
|
export type ByteSource = ArrayBuffer | ArrayBufferView;
|
|
2
|
-
type ByteSourcePair = {
|
|
3
|
-
readonly actual: ByteSource;
|
|
4
|
-
readonly expected: ByteSource;
|
|
5
|
-
};
|
|
6
|
-
type MapPair = {
|
|
7
|
-
readonly actual: ReadonlyMap<unknown, unknown>;
|
|
8
|
-
readonly expected: ReadonlyMap<unknown, unknown>;
|
|
9
|
-
};
|
|
10
|
-
type SetPair = {
|
|
11
|
-
readonly actual: ReadonlySet<unknown>;
|
|
12
|
-
readonly expected: ReadonlySet<unknown>;
|
|
13
|
-
};
|
|
14
|
-
export declare function isByteSource(value: unknown): value is ByteSource;
|
|
15
|
-
export declare function byteSourcePair(actual: unknown, expected: unknown): ByteSourcePair | null;
|
|
16
|
-
export declare function isDateValue(value: unknown): value is Date;
|
|
17
|
-
export declare function isRegExpValue(value: unknown): value is RegExp;
|
|
18
|
-
export declare function isErrorValue(value: unknown): value is Error;
|
|
19
|
-
export declare function mapPair(actual: unknown, expected: unknown): MapPair | null;
|
|
20
|
-
export declare function setPair(actual: unknown, expected: unknown): SetPair | null;
|
|
21
|
-
export declare const isMapCandidate: (value: unknown) => boolean;
|
|
22
|
-
export declare const isSetCandidate: (value: unknown) => boolean;
|
|
23
|
-
export declare function isOpaqueIdentityValue(value: unknown): boolean;
|
|
24
|
-
export declare function prototypeOf(value: unknown): unknown;
|
|
25
2
|
export {};
|
|
26
3
|
//# sourceMappingURL=value-classification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value-classification.d.ts","sourceRoot":"","sources":["../../../../source/compare/value-classification.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"value-classification.d.ts","sourceRoot":"","sources":["../../../../source/compare/value-classification.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,eAAe,CAAC;KAOvD,EAAe,EAGd,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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assertion-facade.d.ts","sourceRoot":"","sources":["../../../../source/engine/assertion-facade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,2BAA2B,EAC3B,wBAAwB,EACxB,oCAAoC,EACvC,MAAM,
|
|
1
|
+
{"version":3,"file":"assertion-facade.d.ts","sourceRoot":"","sources":["../../../../source/engine/assertion-facade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,2BAA2B,EAC3B,wBAAwB,EACxB,oCAAoC,EACvC,MAAM,8CAA8C,CAAC;AACtD,OAAO,KAAK,EACR,gBAAgB,EAChB,cAAc,EACd,qBAEH,MAAM,+CAA+C,CAAC;AAGvD,OAAO,EAEH,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACrB,MAAM,yCAAyC,CAAC;MAM3C,MAAM,qBAAqB,GAAG;IAChC,CAAC,SAAS,SAAS,SAAS,OAAO,EAAE,EAAE,MAAM,SAAS,OAAO,CAAC,wBAAwB,CAAC,QAAQ,CAAC,CAAC,EAC7F,SAAS,EAAE,2BAA2B,CAAC,SAAS,EAAE,MAAM,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Q,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5F,QAAQ,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACvE,QAAQ,CAAC,MAAM,EAAE,CAAC,IAAI,SAAS,MAAM,OAAO,EACxC,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC,EAC/B,OAAO,EAAE,aAAa,EACtB,OAAO,CAAC,EAAE,gBAAgB,KACzB,IAAI,CAAC;IACV,QAAQ,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACrE,QAAQ,CAAC,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC7E,CAAC"}
|
|
@@ -1,33 +1,7 @@
|
|
|
1
1
|
import type { ThrownMatcher } from '../assertion-protocol/thrown-matcher.ts';
|
|
2
|
-
import type { AssertAssertionFacade } from './assertion-facade.ts';
|
|
3
|
-
import type { TestContractFailure } from './run-result.ts';
|
|
4
|
-
type CleanupCallback = () => Promise<void> | void;
|
|
5
|
-
type InFlightRecord<Value> = {
|
|
6
|
-
readonly markObserved: () => void;
|
|
7
|
-
readonly markSettled: () => void;
|
|
8
|
-
readonly observed: () => boolean;
|
|
9
|
-
readonly promise: Promise<Value>;
|
|
10
|
-
readonly settlement: Promise<void>;
|
|
11
|
-
readonly settled: () => boolean;
|
|
12
|
-
};
|
|
13
2
|
export type InFlightTask<Value> = {
|
|
14
3
|
readonly rejects: (matcher: ThrownMatcher) => Promise<void>;
|
|
15
4
|
readonly wait: () => Promise<Value>;
|
|
16
5
|
};
|
|
17
|
-
export type AsyncControlState = {
|
|
18
|
-
readonly cleanupStarted: () => boolean;
|
|
19
|
-
readonly inFlightRecords: () => readonly InFlightRecord<unknown>[];
|
|
20
|
-
readonly registerCleanup: (callback: CleanupCallback) => void;
|
|
21
|
-
readonly registerInFlight: (record: InFlightRecord<unknown>) => void;
|
|
22
|
-
readonly startCleanup: () => readonly CleanupCallback[];
|
|
23
|
-
};
|
|
24
|
-
export declare function drainMicrotasks(): Promise<void>;
|
|
25
|
-
export declare function yieldToNextTurn(): Promise<void>;
|
|
26
|
-
export declare function settleAsyncWork(): Promise<void>;
|
|
27
|
-
export declare function createAsyncControlState(): AsyncControlState;
|
|
28
|
-
export declare function registerCleanup(state: AsyncControlState, callback: CleanupCallback): void;
|
|
29
|
-
export declare function startInFlight<Value>(state: AsyncControlState, assertContext: Pick<AssertAssertionFacade, 'rejects'>, operation: () => PromiseLike<Value>): InFlightTask<Value>;
|
|
30
|
-
export declare function runCleanups(state: AsyncControlState): Promise<readonly unknown[]>;
|
|
31
|
-
export declare function validateInFlightTasks(state: AsyncControlState): readonly TestContractFailure[];
|
|
32
6
|
export {};
|
|
33
7
|
//# sourceMappingURL=async-control.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-control.d.ts","sourceRoot":"","sources":["../../../../source/engine/async-control.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"async-control.d.ts","sourceRoot":"","sources":["../../../../source/engine/async-control.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;MAevE,MAAM,YAAY,CAAC,KAAK,IAAI;IAC9B,QAAQ,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5D,QAAQ,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,CAA0B,EAM/B,CAAC"}
|
|
@@ -1,15 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { type PerTestResult, type RunnerError, type TestContractFailure, type TestFailure } from './run-result.ts';
|
|
1
|
+
import { type RunnerError } from './run-result.ts';
|
|
3
2
|
import type { TestPlanCase } from './test-plan.ts';
|
|
4
|
-
type ExecutedCase = {
|
|
5
|
-
readonly result: PerTestResult;
|
|
6
|
-
readonly runnerErrors: readonly RunnerError[];
|
|
7
|
-
readonly durationMicroseconds: number;
|
|
8
|
-
};
|
|
9
|
-
export type RunTestCaseOptions = {
|
|
10
|
-
readonly controller: AbortController;
|
|
11
|
-
readonly runtimePolicy: TestRuntimePolicy | null;
|
|
12
|
-
};
|
|
13
3
|
export type TestRuntimePolicy = {
|
|
14
4
|
readonly runCase: <Value>(testCase: TestPlanCase, run: () => Promise<Value>) => Promise<Value>;
|
|
15
5
|
readonly runLoad: <Value>(run: () => Promise<Value>) => Promise<Value>;
|
|
@@ -17,8 +7,5 @@ export type TestRuntimePolicy = {
|
|
|
17
7
|
readonly takePendingRunErrors: () => readonly RunnerError[];
|
|
18
8
|
readonly takeRunErrors: () => readonly RunnerError[];
|
|
19
9
|
};
|
|
20
|
-
export declare function timeoutFailure(deadlineMilliseconds: number, elapsedMilliseconds: number): TestFailure;
|
|
21
|
-
export declare function invalidTimeoutControlFailure(actual: unknown, expected: string): TestContractFailure;
|
|
22
|
-
export declare function runTestCase(testCase: TestPlanCase, wallClock: Clock, options?: RunTestCaseOptions): Promise<ExecutedCase>;
|
|
23
10
|
export {};
|
|
24
11
|
//# sourceMappingURL=case-execution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"case-execution.d.ts","sourceRoot":"","sources":["../../../../source/engine/case-execution.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"case-execution.d.ts","sourceRoot":"","sources":["../../../../source/engine/case-execution.ts"],"names":[],"mappings":"AAAA,OAAY,oBA0BX,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;MA8C7C,uBAEuC,GAGb;IAC5B,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,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC;IACvE,QAAQ,CAAC,cAAc,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,SAAS,WAAW,EAAE,CAAC;IAC5E,QAAQ,CAAC,oBAAoB,EAAE,MAAM,SAAS,WAAW,EAAE,CAAC;IAC5D,QAAQ,CAAC,aAAa,EAAE,MAAM,SAAS,WAAW,EAAE,CAAC;CACxD,CAAC;AAiaF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getAssertionReferenceRecord, getNarrowingAssertionReferenceRecord, isAssertionReference, isCompositeAssertionGroup, isNarrowingAssertionReference } from "../
|
|
1
|
+
import { getAssertionReferenceRecord, getNarrowingAssertionReferenceRecord, isAssertionReference, isCompositeAssertionGroup, isNarrowingAssertionReference } from "../assertion-protocol/assertion-reference.js";
|
|
2
2
|
const expectedArgumentSlot = 1;
|
|
3
3
|
function createInvalidAssertionReferenceFailure(actual) {
|
|
4
4
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-assertion-recording.js","sourceRoot":"","sources":["../../../../source/engine/custom-assertion-recording.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,2BAA2B,EAC3B,oCAAoC,EACpC,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,EAKhC,MAAM,
|
|
1
|
+
{"version":3,"file":"custom-assertion-recording.js","sourceRoot":"","sources":["../../../../source/engine/custom-assertion-recording.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,2BAA2B,EAC3B,oCAAoC,EACpC,oBAA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AAqC,CAAC;QAC3D,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,MAAM;QACN,MAAM,EAAE,SAAS;QACjB,eAAe,EAAE,KAAK,CAAC,eAAe;KACzC,CAAC,CAAC,CAAC;AACR,CAAC"}
|
package/engine/engine.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { Clock } from '@enormora/clock';
|
|
2
1
|
import type { Execute } from './execution.ts';
|
|
3
2
|
import { formatCaseId } from './identity.ts';
|
|
4
|
-
import { type
|
|
3
|
+
import { type RootOptions, type Suite, type SkippedTestCaseOptions, type SuiteOptions, type Table, type TableOptions, type TestCase, type TestCaseOptions, type TestNode, type TestRoot, type ThrowingTestCaseOptions } from './test-node.ts';
|
|
5
4
|
import { type TestPlanFactory, type TestPlanFromTestFilesFactory } from './test-plan.ts';
|
|
6
5
|
export type Engine = {
|
|
7
6
|
readonly createRoot: (options: RootOptions) => TestRoot;
|
|
@@ -16,10 +15,4 @@ export type Engine = {
|
|
|
16
15
|
readonly formatCaseId: typeof formatCaseId;
|
|
17
16
|
readonly ownsTestNode: (value: unknown) => value is TestNode;
|
|
18
17
|
};
|
|
19
|
-
export type EngineDependencies = {
|
|
20
|
-
readonly execute: Execute;
|
|
21
|
-
readonly wallClock: Clock;
|
|
22
|
-
};
|
|
23
|
-
export declare function createEngineWithOwner(dependencies: EngineDependencies, owner: TestNodeOwner): Engine;
|
|
24
|
-
export declare function createEngine(dependencies: EngineDependencies): Engine;
|
|
25
18
|
//# sourceMappingURL=engine.d.ts.map
|
package/engine/engine.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../source/engine/engine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../source/engine/engine.ts"],"names":[],"mappings":"AAAA,OAA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unnerError } from './run-result.ts';
|
|
2
2
|
import type { TestPlanCase } from './test-plan.ts';
|
|
3
|
-
type ExecutionBoundary = 'in-process' | 'supervised-child' | 'worker-pool-host' | 'worker-pool-worker';
|
|
4
3
|
type ExecutionPhase = 'body' | 'collection' | 'run';
|
|
5
4
|
type FatalErrorHandler = (error: RunnerError) => unknown;
|
|
6
5
|
type FatalErrorHandlerDisposer = () => unknown;
|
|
@@ -14,7 +13,5 @@ export type ExecutionGlobalErrorObserver = {
|
|
|
14
13
|
readonly stop: () => unknown;
|
|
15
14
|
readonly takeErrors: () => readonly RunnerError[];
|
|
16
15
|
};
|
|
17
|
-
export declare function createDisabledExecutionGlobalErrorObserver(): ExecutionGlobalErrorObserver;
|
|
18
|
-
export declare function createExecutionGlobalErrorObserver(boundary: ExecutionBoundary): ExecutionGlobalErrorObserver;
|
|
19
16
|
export {};
|
|
20
17
|
//# sourceMappingURL=execution-global-error-observer.d.ts.map
|