bupkis 0.10.6 → 0.11.1
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/CHANGELOG.md +20 -0
- package/dist/commonjs/assertion/impl/async-parametric.d.ts +13 -48
- package/dist/commonjs/assertion/impl/async-parametric.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/async-parametric.js +14 -54
- package/dist/commonjs/assertion/impl/async-parametric.js.map +1 -1
- package/dist/commonjs/assertion/impl/async.d.ts +34 -90
- package/dist/commonjs/assertion/impl/async.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-basic.d.ts +1 -1
- package/dist/commonjs/assertion/impl/sync-basic.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-basic.js +25 -25
- package/dist/commonjs/assertion/impl/sync-basic.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-collection.d.ts +56 -93
- package/dist/commonjs/assertion/impl/sync-collection.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-collection.js +124 -184
- package/dist/commonjs/assertion/impl/sync-collection.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-date.d.ts +55 -139
- package/dist/commonjs/assertion/impl/sync-date.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-date.js +9 -330
- package/dist/commonjs/assertion/impl/sync-date.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-esoteric.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-esoteric.js +2 -2
- package/dist/commonjs/assertion/impl/sync-esoteric.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync-parametric.d.ts +29 -53
- package/dist/commonjs/assertion/impl/sync-parametric.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync-parametric.js +79 -104
- package/dist/commonjs/assertion/impl/sync-parametric.js.map +1 -1
- package/dist/commonjs/assertion/impl/sync.d.ts +248 -241
- package/dist/commonjs/assertion/impl/sync.d.ts.map +1 -1
- package/dist/commonjs/assertion/impl/sync.js +5 -8
- package/dist/commonjs/assertion/impl/sync.js.map +1 -1
- package/dist/commonjs/assertion/slotify.js +88 -43
- package/dist/commonjs/assertion/slotify.js.map +1 -1
- package/dist/commonjs/bootstrap.d.ts +137 -164
- package/dist/commonjs/bootstrap.d.ts.map +1 -1
- package/dist/commonjs/diff.d.ts.map +1 -1
- package/dist/commonjs/diff.js +20 -32
- package/dist/commonjs/diff.js.map +1 -1
- package/dist/commonjs/index.d.ts +103 -130
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/schema.d.ts +186 -0
- package/dist/commonjs/schema.d.ts.map +1 -1
- package/dist/commonjs/schema.js +306 -1
- package/dist/commonjs/schema.js.map +1 -1
- package/dist/esm/assertion/impl/async-parametric.d.ts +13 -48
- package/dist/esm/assertion/impl/async-parametric.d.ts.map +1 -1
- package/dist/esm/assertion/impl/async-parametric.js +15 -55
- package/dist/esm/assertion/impl/async-parametric.js.map +1 -1
- package/dist/esm/assertion/impl/async.d.ts +34 -90
- package/dist/esm/assertion/impl/async.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-basic.d.ts +1 -1
- package/dist/esm/assertion/impl/sync-basic.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-basic.js +26 -26
- package/dist/esm/assertion/impl/sync-basic.js.map +1 -1
- package/dist/esm/assertion/impl/sync-collection.d.ts +56 -93
- package/dist/esm/assertion/impl/sync-collection.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-collection.js +124 -184
- package/dist/esm/assertion/impl/sync-collection.js.map +1 -1
- package/dist/esm/assertion/impl/sync-date.d.ts +55 -139
- package/dist/esm/assertion/impl/sync-date.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-date.js +8 -329
- package/dist/esm/assertion/impl/sync-date.js.map +1 -1
- package/dist/esm/assertion/impl/sync-esoteric.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-esoteric.js +3 -3
- package/dist/esm/assertion/impl/sync-esoteric.js.map +1 -1
- package/dist/esm/assertion/impl/sync-parametric.d.ts +29 -53
- package/dist/esm/assertion/impl/sync-parametric.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync-parametric.js +80 -105
- package/dist/esm/assertion/impl/sync-parametric.js.map +1 -1
- package/dist/esm/assertion/impl/sync.d.ts +248 -241
- package/dist/esm/assertion/impl/sync.d.ts.map +1 -1
- package/dist/esm/assertion/impl/sync.js +7 -10
- package/dist/esm/assertion/impl/sync.js.map +1 -1
- package/dist/esm/assertion/slotify.js +88 -43
- package/dist/esm/assertion/slotify.js.map +1 -1
- package/dist/esm/bootstrap.d.ts +137 -164
- package/dist/esm/bootstrap.d.ts.map +1 -1
- package/dist/esm/diff.d.ts.map +1 -1
- package/dist/esm/diff.js +20 -32
- package/dist/esm/diff.js.map +1 -1
- package/dist/esm/index.d.ts +103 -130
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/schema.d.ts +186 -0
- package/dist/esm/schema.d.ts.map +1 -1
- package/dist/esm/schema.js +303 -0
- package/dist/esm/schema.js.map +1 -1
- package/package.json +22 -12
- package/src/assertion/impl/async-parametric.ts +18 -54
- package/src/assertion/impl/sync-basic.ts +48 -32
- package/src/assertion/impl/sync-collection.ts +141 -195
- package/src/assertion/impl/sync-date.ts +15 -390
- package/src/assertion/impl/sync-esoteric.ts +7 -3
- package/src/assertion/impl/sync-parametric.ts +106 -106
- package/src/assertion/impl/sync.ts +5 -16
- package/src/assertion/slotify.ts +61 -6
- package/src/diff.ts +27 -32
- package/src/schema.ts +330 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.11.1](https://github.com/boneskull/bupkis/compare/bupkis-v0.11.0...bupkis-v0.11.1) (2025-10-10)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **assertions:** remove non-deterministic date assertions ([e1569c3](https://github.com/boneskull/bupkis/commit/e1569c3c85572782e2bfe0bb9ecac89b9f2b4f49)), closes [#146](https://github.com/boneskull/bupkis/issues/146)
|
|
9
|
+
|
|
10
|
+
## [0.11.0](https://github.com/boneskull/bupkis/compare/bupkis-v0.10.6...bupkis-v0.11.0) (2025-10-06)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* **assertions:** add some more aliases; cleanup ([a751cdb](https://github.com/boneskull/bupkis/commit/a751cdb1462ec77a8e17fc52c4d5434ca3197535))
|
|
16
|
+
* **schema:** add more schemas ([0b0c292](https://github.com/boneskull/bupkis/commit/0b0c2928a29c4615433e537d34637bdb1cd44af9))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **deps:** unpin type-fest ([e621d19](https://github.com/boneskull/bupkis/commit/e621d1982c371581206d49ec979b45eefddec125))
|
|
22
|
+
|
|
3
23
|
## [0.10.6](https://github.com/boneskull/bupkis/compare/bupkis-v0.10.5...bupkis-v0.10.6) (2025-10-06)
|
|
4
24
|
|
|
5
25
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @showGroups
|
|
14
14
|
*/
|
|
15
|
-
import { z } from 'zod/v4';
|
|
15
|
+
import { type z } from 'zod/v4';
|
|
16
16
|
/**
|
|
17
17
|
* Assertion for testing if a function returns a fulfilled Promise.
|
|
18
18
|
*
|
|
@@ -28,8 +28,6 @@ import { z } from 'zod/v4';
|
|
|
28
28
|
* @bupkisAssertionCategory promise
|
|
29
29
|
*/
|
|
30
30
|
export declare const functionResolveAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to resolve", "to fulfill"]], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<{
|
|
31
|
-
actual: string;
|
|
32
|
-
expected: string;
|
|
33
31
|
message: string;
|
|
34
32
|
} | undefined>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>;
|
|
35
33
|
/**
|
|
@@ -40,22 +38,13 @@ export declare const functionResolveAssertion: import("../assertion-types.js").A
|
|
|
40
38
|
* ```typescript
|
|
41
39
|
* await expectAsync(Promise.resolve('success'), 'to resolve'); // passes
|
|
42
40
|
* await expectAsync(Promise.reject('error'), 'to fulfill'); // fails
|
|
43
|
-
* /**
|
|
44
|
-
* Assertion for testing if a promise resolves.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
*
|
|
48
|
-
* ```typescript
|
|
49
|
-
* await expectAsync(Promise.resolve('success'), 'to resolve'); // passes
|
|
50
|
-
* await expectAsync(Promise.reject('error'), 'to resolve'); // fails
|
|
51
41
|
* ```
|
|
52
42
|
*
|
|
53
|
-
* @group Parametric Assertions (Async) @bupkisAnchor promise-to-resolve
|
|
54
43
|
* @bupkisAssertionCategory promise
|
|
44
|
+
* @bupkisAnchor promise-to-resolve
|
|
45
|
+
* @group Parametric Assertions (Async)
|
|
55
46
|
*/
|
|
56
47
|
export declare const promiseResolveAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to resolve", "to fulfill"]], (subject: PromiseLike<unknown>) => Promise<{
|
|
57
|
-
actual: string;
|
|
58
|
-
expected: string;
|
|
59
48
|
message: string;
|
|
60
49
|
} | undefined>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to resolve", "to fulfill"]>]>;
|
|
61
50
|
/**
|
|
@@ -71,8 +60,6 @@ export declare const promiseResolveAssertion: import("../assertion-types.js").As
|
|
|
71
60
|
* @group Parametric Assertions (Async)
|
|
72
61
|
*/
|
|
73
62
|
export declare const functionRejectAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, "to reject"], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown) => Promise<{
|
|
74
|
-
actual: string;
|
|
75
|
-
expected: string;
|
|
76
63
|
message: string;
|
|
77
64
|
} | undefined>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralSlot<"to reject">]>;
|
|
78
65
|
/**
|
|
@@ -88,8 +75,6 @@ export declare const functionRejectAssertion: import("../assertion-types.js").As
|
|
|
88
75
|
* @group Parametric Assertions (Async)
|
|
89
76
|
*/
|
|
90
77
|
export declare const promiseRejectAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, "to reject"], (subject: PromiseLike<unknown>) => Promise<{
|
|
91
|
-
actual: string;
|
|
92
|
-
expected: string;
|
|
93
78
|
message: string;
|
|
94
79
|
} | undefined>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralSlot<"to reject">]>;
|
|
95
80
|
/**
|
|
@@ -113,15 +98,13 @@ export declare const promiseRejectAssertion: import("../assertion-types.js").Ass
|
|
|
113
98
|
* @group Parametric Assertions (Async)
|
|
114
99
|
*/
|
|
115
100
|
export declare const functionRejectWithTypeAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with a", "to reject with an"], z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, ctor: import("../../types.js").Constructor) => Promise<{
|
|
116
|
-
actual: string;
|
|
117
|
-
expect: string;
|
|
118
101
|
message: string;
|
|
102
|
+
actual?: never;
|
|
119
103
|
expected?: never;
|
|
120
104
|
} | {
|
|
121
105
|
actual: string;
|
|
122
106
|
expected: string;
|
|
123
107
|
message: string;
|
|
124
|
-
expect?: never;
|
|
125
108
|
} | undefined>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>;
|
|
126
109
|
/**
|
|
127
110
|
* Assertion for testing if a Promise rejects with a specific error type.
|
|
@@ -144,15 +127,13 @@ export declare const functionRejectWithTypeAssertion: import("../assertion-types
|
|
|
144
127
|
* @group Parametric Assertions (Async)
|
|
145
128
|
*/
|
|
146
129
|
export declare const promiseRejectWithTypeAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with a", "to reject with an"], z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>], (subject: PromiseLike<unknown>, ctor: import("../../types.js").Constructor) => Promise<{
|
|
147
|
-
actual: string;
|
|
148
|
-
expect: string;
|
|
149
130
|
message: string;
|
|
131
|
+
actual?: never;
|
|
150
132
|
expected?: never;
|
|
151
133
|
} | {
|
|
152
134
|
actual: string;
|
|
153
135
|
expected: string;
|
|
154
136
|
message: string;
|
|
155
|
-
expect?: never;
|
|
156
137
|
} | undefined>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with a", "to reject with an"]>, z.ZodCustom<import("../../types.js").Constructor, import("../../types.js").Constructor>]>;
|
|
157
138
|
/**
|
|
158
139
|
* Assertion for testing if a function rejects with an error satisfying specific
|
|
@@ -180,19 +161,15 @@ export declare const promiseRejectWithTypeAssertion: import("../assertion-types.
|
|
|
180
161
|
*
|
|
181
162
|
* @group Parametric Assertions (Async)
|
|
182
163
|
*/
|
|
183
|
-
export declare const functionRejectWithErrorSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with error satisfying"], z.
|
|
184
|
-
actual: string;
|
|
185
|
-
expect: string;
|
|
164
|
+
export declare const functionRejectWithErrorSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to reject with error satisfying"], z.ZodUnknown], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: unknown) => Promise<{
|
|
186
165
|
message: string;
|
|
187
166
|
schema?: never;
|
|
188
167
|
subject?: never;
|
|
189
168
|
} | {
|
|
190
169
|
schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
191
170
|
subject: {} | null;
|
|
192
|
-
actual?: never;
|
|
193
|
-
expect?: never;
|
|
194
171
|
message?: never;
|
|
195
|
-
}>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, z.
|
|
172
|
+
}>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, z.ZodUnknown]>;
|
|
196
173
|
/**
|
|
197
174
|
* Assertion for testing if a Promise rejects with an error satisfying specific
|
|
198
175
|
* criteria.
|
|
@@ -219,19 +196,15 @@ export declare const functionRejectWithErrorSatisfyingAssertion: import("../asse
|
|
|
219
196
|
*
|
|
220
197
|
* @group Parametric Assertions (Async)
|
|
221
198
|
*/
|
|
222
|
-
export declare const promiseRejectWithErrorSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with error satisfying"], z.
|
|
223
|
-
actual: string;
|
|
224
|
-
expect: string;
|
|
199
|
+
export declare const promiseRejectWithErrorSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to reject with error satisfying"], z.ZodUnknown], (subject: PromiseLike<unknown>, param: unknown) => Promise<{
|
|
225
200
|
message: string;
|
|
226
201
|
schema?: never;
|
|
227
202
|
subject?: never;
|
|
228
203
|
} | {
|
|
229
204
|
schema: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
230
205
|
subject: {} | null;
|
|
231
|
-
actual?: never;
|
|
232
|
-
expect?: never;
|
|
233
206
|
message?: never;
|
|
234
|
-
}>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, z.
|
|
207
|
+
}>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to reject with error satisfying"]>, z.ZodUnknown]>;
|
|
235
208
|
/**
|
|
236
209
|
* Assertion for testing if a Promise fulfills with a value satisfying specific
|
|
237
210
|
* criteria.
|
|
@@ -258,19 +231,15 @@ export declare const promiseRejectWithErrorSatisfyingAssertion: import("../asser
|
|
|
258
231
|
*
|
|
259
232
|
* @group Parametric Assertions (Async)
|
|
260
233
|
*/
|
|
261
|
-
export declare const promiseResolveWithValueSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], z.
|
|
262
|
-
actual: string;
|
|
263
|
-
expect: string;
|
|
234
|
+
export declare const promiseResolveWithValueSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], z.ZodUnknown], (promise: PromiseLike<unknown>, param: unknown) => Promise<{
|
|
264
235
|
message: string;
|
|
265
236
|
schema?: never;
|
|
266
237
|
subject?: never;
|
|
267
238
|
} | {
|
|
268
239
|
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
269
240
|
subject: unknown;
|
|
270
|
-
actual?: never;
|
|
271
|
-
expect?: never;
|
|
272
241
|
message?: never;
|
|
273
|
-
}>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, z.
|
|
242
|
+
}>, readonly [z.ZodCustom<PromiseLike<unknown>, PromiseLike<unknown>>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, z.ZodUnknown]>;
|
|
274
243
|
/**
|
|
275
244
|
* Assertion for testing if a function returns a Promise that fulfills with a
|
|
276
245
|
* value satisfying specific criteria.
|
|
@@ -297,17 +266,13 @@ export declare const promiseResolveWithValueSatisfyingAssertion: import("../asse
|
|
|
297
266
|
*
|
|
298
267
|
* @group Parametric Assertions (Async)
|
|
299
268
|
*/
|
|
300
|
-
export declare const functionFulfillWithValueSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], z.
|
|
301
|
-
actual: string;
|
|
302
|
-
expect: string;
|
|
269
|
+
export declare const functionFulfillWithValueSatisfyingAssertion: import("../assertion-types.js").AssertionFunctionAsync<readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, readonly ["to fulfill with value satisfying", "to resolve with value satisfying"], z.ZodUnknown], (subject: (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, param: unknown) => Promise<{
|
|
303
270
|
message: string;
|
|
304
271
|
schema?: never;
|
|
305
272
|
subject?: never;
|
|
306
273
|
} | {
|
|
307
274
|
schema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
308
275
|
subject: unknown;
|
|
309
|
-
actual?: never;
|
|
310
|
-
expect?: never;
|
|
311
276
|
message?: never;
|
|
312
|
-
}>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, z.
|
|
277
|
+
}>, readonly [z.ZodCustom<(...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown, (...args: import("../../types.js").MutableOrReadonly<unknown[]>) => unknown>, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to fulfill with value satisfying", "to resolve with value satisfying"]>, z.ZodUnknown]>;
|
|
313
278
|
//# sourceMappingURL=async-parametric.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-parametric.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/async-parametric.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"async-parametric.d.ts","sourceRoot":"","sources":["../../../../src/assertion/impl/async-parametric.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,QAAQ,CAAC;AAmBhC;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB;;iSAWpC,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,uBAAuB;;mLAWnC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,uBAAuB;;iQAUnC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB;;mJAUlC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;uYA6B3C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;yRA6B1C,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0CAA0C;;;;;;;;0SAgCtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,yCAAyC;;;;;;;;4LAmCrD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,0CAA0C;;;;;;;;iOAyBtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,eAAO,MAAM,2CAA2C;;;;;;;;+UAwBvD,CAAC"}
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.functionFulfillWithValueSatisfyingAssertion = exports.promiseResolveWithValueSatisfyingAssertion = exports.promiseRejectWithErrorSatisfyingAssertion = exports.functionRejectWithErrorSatisfyingAssertion = exports.promiseRejectWithTypeAssertion = exports.functionRejectWithTypeAssertion = exports.promiseRejectAssertion = exports.functionRejectAssertion = exports.promiseResolveAssertion = exports.functionResolveAssertion = void 0;
|
|
18
18
|
const node_util_1 = require("node:util");
|
|
19
|
-
const v4_1 = require("zod/v4");
|
|
20
19
|
const error_js_1 = require("../../error.js");
|
|
21
20
|
const guards_js_1 = require("../../guards.js");
|
|
22
21
|
const schema_js_1 = require("../../schema.js");
|
|
@@ -43,8 +42,6 @@ exports.functionResolveAssertion = (0, create_js_1.createAsyncAssertion)([schema
|
|
|
43
42
|
}
|
|
44
43
|
catch {
|
|
45
44
|
return {
|
|
46
|
-
actual: 'function rejected',
|
|
47
|
-
expected: 'function to fulfill',
|
|
48
45
|
message: 'Expected function to fulfill, but it rejected instead',
|
|
49
46
|
};
|
|
50
47
|
}
|
|
@@ -57,18 +54,11 @@ exports.functionResolveAssertion = (0, create_js_1.createAsyncAssertion)([schema
|
|
|
57
54
|
* ```typescript
|
|
58
55
|
* await expectAsync(Promise.resolve('success'), 'to resolve'); // passes
|
|
59
56
|
* await expectAsync(Promise.reject('error'), 'to fulfill'); // fails
|
|
60
|
-
* /**
|
|
61
|
-
* Assertion for testing if a promise resolves.
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
*
|
|
65
|
-
* ```typescript
|
|
66
|
-
* await expectAsync(Promise.resolve('success'), 'to resolve'); // passes
|
|
67
|
-
* await expectAsync(Promise.reject('error'), 'to resolve'); // fails
|
|
68
57
|
* ```
|
|
69
58
|
*
|
|
70
|
-
* @group Parametric Assertions (Async) @bupkisAnchor promise-to-resolve
|
|
71
59
|
* @bupkisAssertionCategory promise
|
|
60
|
+
* @bupkisAnchor promise-to-resolve
|
|
61
|
+
* @group Parametric Assertions (Async)
|
|
72
62
|
*/
|
|
73
63
|
exports.promiseResolveAssertion = (0, create_js_1.createAsyncAssertion)([schema_js_1.WrappedPromiseLikeSchema, ['to resolve', 'to fulfill']], async (subject) => {
|
|
74
64
|
try {
|
|
@@ -76,8 +66,6 @@ exports.promiseResolveAssertion = (0, create_js_1.createAsyncAssertion)([schema_
|
|
|
76
66
|
}
|
|
77
67
|
catch {
|
|
78
68
|
return {
|
|
79
|
-
actual: 'promise rejected',
|
|
80
|
-
expected: 'promise to fulfill',
|
|
81
69
|
message: 'Expected promise to fulfill, but it rejected instead',
|
|
82
70
|
};
|
|
83
71
|
}
|
|
@@ -98,8 +86,6 @@ exports.functionRejectAssertion = (0, create_js_1.createAsyncAssertion)([schema_
|
|
|
98
86
|
const { error, result } = await (0, assertion_util_js_1.trapAsyncFnError)(subject);
|
|
99
87
|
if (error === undefined) {
|
|
100
88
|
return {
|
|
101
|
-
actual: 'function fulfilled',
|
|
102
|
-
expected: 'function rejected',
|
|
103
89
|
message: `Expected function to reject, but it fulfilled with ${(0, node_util_1.inspect)(result)}`,
|
|
104
90
|
};
|
|
105
91
|
}
|
|
@@ -120,8 +106,6 @@ exports.promiseRejectAssertion = (0, create_js_1.createAsyncAssertion)([schema_j
|
|
|
120
106
|
const { error, result } = await (0, assertion_util_js_1.trapPromiseError)(subject);
|
|
121
107
|
if (error === undefined) {
|
|
122
108
|
return {
|
|
123
|
-
actual: 'Promise fulfilled',
|
|
124
|
-
expected: 'Promise rejected',
|
|
125
109
|
message: `Expected Promise to reject, but it fulfilled with ${(0, node_util_1.inspect)(result)}`,
|
|
126
110
|
};
|
|
127
111
|
}
|
|
@@ -154,8 +138,6 @@ exports.functionRejectWithTypeAssertion = (0, create_js_1.createAsyncAssertion)(
|
|
|
154
138
|
const { error, result } = await (0, assertion_util_js_1.trapAsyncFnError)(subject);
|
|
155
139
|
if (error === undefined) {
|
|
156
140
|
return {
|
|
157
|
-
actual: 'function fulfilled',
|
|
158
|
-
expect: 'function rejected',
|
|
159
141
|
message: `Expected function to reject, but it fulfilled with ${(0, node_util_1.inspect)(result)}`,
|
|
160
142
|
};
|
|
161
143
|
}
|
|
@@ -203,8 +185,6 @@ exports.promiseRejectWithTypeAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
|
203
185
|
const { error, result } = await (0, assertion_util_js_1.trapPromiseError)(subject);
|
|
204
186
|
if (error === undefined) {
|
|
205
187
|
return {
|
|
206
|
-
actual: 'Promise fulfilled',
|
|
207
|
-
expect: 'Promise rejected',
|
|
208
188
|
message: `Expected Promise to reject, but it fulfilled with ${(0, node_util_1.inspect)(result)}`,
|
|
209
189
|
};
|
|
210
190
|
}
|
|
@@ -250,30 +230,20 @@ exports.promiseRejectWithTypeAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
|
250
230
|
*
|
|
251
231
|
* @group Parametric Assertions (Async)
|
|
252
232
|
*/
|
|
253
|
-
exports.functionRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([schema_js_1.FunctionSchema, ['to reject with error satisfying'],
|
|
233
|
+
exports.functionRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([schema_js_1.FunctionSchema, ['to reject with error satisfying'], schema_js_1.UnknownSchema], async (subject, param) => {
|
|
254
234
|
const { error, result } = await (0, assertion_util_js_1.trapAsyncFnError)(subject);
|
|
255
235
|
if (error === undefined) {
|
|
256
236
|
return {
|
|
257
|
-
actual: 'function fulfilled',
|
|
258
|
-
expect: 'function to reject',
|
|
259
237
|
message: `Expected function to reject, but it fulfilled with ${(0, node_util_1.inspect)(result)}`,
|
|
260
238
|
};
|
|
261
239
|
}
|
|
262
240
|
let schema;
|
|
263
241
|
// TODO: can valueToSchema handle the first two conditional branches?
|
|
264
242
|
if ((0, guards_js_1.isString)(param)) {
|
|
265
|
-
schema =
|
|
266
|
-
.looseObject({
|
|
267
|
-
message: v4_1.z.coerce.string().pipe(v4_1.z.literal(param)),
|
|
268
|
-
})
|
|
269
|
-
.or(v4_1.z.coerce.string().pipe(v4_1.z.literal(param)));
|
|
243
|
+
schema = (0, schema_js_1.createErrorMessageSchema)(param);
|
|
270
244
|
}
|
|
271
245
|
else if ((0, guards_js_1.isA)(param, RegExp)) {
|
|
272
|
-
schema =
|
|
273
|
-
.looseObject({
|
|
274
|
-
message: v4_1.z.coerce.string().regex(param),
|
|
275
|
-
})
|
|
276
|
-
.or(v4_1.z.coerce.string().regex(param));
|
|
246
|
+
schema = (0, schema_js_1.createErrorMessageRegexSchema)(param);
|
|
277
247
|
}
|
|
278
248
|
else if ((0, guards_js_1.isNonNullObject)(param)) {
|
|
279
249
|
schema = (0, value_to_schema_js_1.valueToSchema)(param, value_to_schema_js_1.valueToSchemaOptionsForSatisfies);
|
|
@@ -313,30 +283,24 @@ exports.functionRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsync
|
|
|
313
283
|
*
|
|
314
284
|
* @group Parametric Assertions (Async)
|
|
315
285
|
*/
|
|
316
|
-
exports.promiseRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
286
|
+
exports.promiseRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
287
|
+
schema_js_1.WrappedPromiseLikeSchema,
|
|
288
|
+
['to reject with error satisfying'],
|
|
289
|
+
schema_js_1.UnknownSchema,
|
|
290
|
+
], async (subject, param) => {
|
|
317
291
|
const { error, result } = await (0, assertion_util_js_1.trapPromiseError)(subject);
|
|
318
292
|
if (error === undefined) {
|
|
319
293
|
return {
|
|
320
|
-
actual: 'Promise fulfilled',
|
|
321
|
-
expect: 'Promise rejected',
|
|
322
294
|
message: `Expected Promise to reject, but it fulfilled with ${(0, node_util_1.inspect)(result)}`,
|
|
323
295
|
};
|
|
324
296
|
}
|
|
325
297
|
let schema;
|
|
326
298
|
// TODO: can valueToSchema handle the first two conditional branches?
|
|
327
299
|
if ((0, guards_js_1.isString)(param)) {
|
|
328
|
-
schema =
|
|
329
|
-
.looseObject({
|
|
330
|
-
message: v4_1.z.coerce.string().pipe(v4_1.z.literal(param)),
|
|
331
|
-
})
|
|
332
|
-
.or(v4_1.z.coerce.string().pipe(v4_1.z.literal(param)));
|
|
300
|
+
schema = (0, schema_js_1.createErrorMessageSchema)(param);
|
|
333
301
|
}
|
|
334
302
|
else if ((0, guards_js_1.isA)(param, RegExp)) {
|
|
335
|
-
schema =
|
|
336
|
-
.looseObject({
|
|
337
|
-
message: v4_1.z.coerce.string().regex(param),
|
|
338
|
-
})
|
|
339
|
-
.or(v4_1.z.coerce.string().regex(param));
|
|
303
|
+
schema = (0, schema_js_1.createErrorMessageRegexSchema)(param);
|
|
340
304
|
}
|
|
341
305
|
else if ((0, guards_js_1.isNonNullObject)(param)) {
|
|
342
306
|
schema = (0, value_to_schema_js_1.valueToSchema)(param, value_to_schema_js_1.valueToSchemaOptionsForSatisfies);
|
|
@@ -379,7 +343,7 @@ exports.promiseRejectWithErrorSatisfyingAssertion = (0, create_js_1.createAsyncA
|
|
|
379
343
|
exports.promiseResolveWithValueSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
380
344
|
schema_js_1.WrappedPromiseLikeSchema,
|
|
381
345
|
['to fulfill with value satisfying', 'to resolve with value satisfying'],
|
|
382
|
-
|
|
346
|
+
schema_js_1.UnknownSchema,
|
|
383
347
|
], async (promise, param) => {
|
|
384
348
|
let value;
|
|
385
349
|
try {
|
|
@@ -387,8 +351,6 @@ exports.promiseResolveWithValueSatisfyingAssertion = (0, create_js_1.createAsync
|
|
|
387
351
|
}
|
|
388
352
|
catch (err) {
|
|
389
353
|
return {
|
|
390
|
-
actual: 'Promise rejected',
|
|
391
|
-
expect: 'Promise to fulfill',
|
|
392
354
|
message: `Expected Promise to fulfill, but it rejected with ${(0, node_util_1.inspect)(err)}`,
|
|
393
355
|
};
|
|
394
356
|
}
|
|
@@ -427,7 +389,7 @@ exports.promiseResolveWithValueSatisfyingAssertion = (0, create_js_1.createAsync
|
|
|
427
389
|
exports.functionFulfillWithValueSatisfyingAssertion = (0, create_js_1.createAsyncAssertion)([
|
|
428
390
|
schema_js_1.FunctionSchema,
|
|
429
391
|
['to fulfill with value satisfying', 'to resolve with value satisfying'],
|
|
430
|
-
|
|
392
|
+
schema_js_1.UnknownSchema,
|
|
431
393
|
], async (subject, param) => {
|
|
432
394
|
let value;
|
|
433
395
|
try {
|
|
@@ -435,8 +397,6 @@ exports.functionFulfillWithValueSatisfyingAssertion = (0, create_js_1.createAsyn
|
|
|
435
397
|
}
|
|
436
398
|
catch (err) {
|
|
437
399
|
return {
|
|
438
|
-
actual: 'function rejected',
|
|
439
|
-
expect: 'function fulfilled',
|
|
440
400
|
message: `Expected function to fulfill, but it rejected with ${(0, node_util_1.inspect)(err)}`,
|
|
441
401
|
};
|
|
442
402
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-parametric.js","sourceRoot":"","sources":["../../../../src/assertion/impl/async-parametric.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;AAEH,yCAAoC;
|
|
1
|
+
{"version":3,"file":"async-parametric.js","sourceRoot":"","sources":["../../../../src/assertion/impl/async-parametric.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;AAEH,yCAAoC;AAGpC,6CAA0D;AAC1D,+CAAiE;AACjE,+CAOyB;AACzB,iEAGkC;AAClC,4CAAoD;AACpD,2DAAyE;AAEzE;;;;;;;;;;;;;GAaG;AACU,QAAA,wBAAwB,GAAG,IAAA,gCAAoB,EAC1D,CAAC,0BAAc,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,EAC9C,KAAK,EAAE,OAAO,EAAE,EAAE;IAChB,IAAI,CAAC;QACH,MAAM,OAAO,EAAE,CAAC;IAClB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO;YACL,OAAO,EAAE,uDAAuD;SACjE,CAAC;IACJ,CAAC;AACH,CAAC,CACF,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACU,QAAA,uBAAuB,GAAG,IAAA,gCAAoB,EACzD,CAAC,oCAAwB,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,EACxD,KAAK,EAAE,OAAO,EAAE,EAAE;IAChB,IAAI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