@dereekb/vitest 13.2.2 → 13.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/vitest",
3
- "version": "13.2.2",
3
+ "version": "13.3.1",
4
4
  "peerDependencies": {
5
5
  "date-fns": "^4.0.0",
6
6
  "vitest": "4.0.18"
@@ -1,10 +1,22 @@
1
1
  import type { ExpectationResult, MatcherState } from '@vitest/expect';
2
+ /**
3
+ * Utility type that extracts the `expected` parameter from a date matcher function, producing the consumer-facing matcher signature.
4
+ *
5
+ * Used by {@link AllDateMatchers} to map internal matcher implementations to their public `expect().toBe*()` signatures.
6
+ */
2
7
  export type DateMatcherTypeWithExpected<T extends (this: MatcherState, input: Date, expected: Date) => ExpectationResult> = T extends (this: MatcherState, input: any, expected: infer B) => ExpectationResult ? (expected: B) => ExpectationResult : never;
8
+ /**
9
+ * Utility type that strips the `input` parameter from a date matcher function, producing a zero-argument consumer-facing matcher signature.
10
+ *
11
+ * Used by {@link AllDateMatchers} for day-of-week matchers like `toBeMonday()`.
12
+ */
3
13
  export type DateMatcherTypeWithoutExpected<T extends (this: MatcherState, input: Date) => ExpectationResult> = T extends (this: MatcherState, input: any) => ExpectationResult ? () => ExpectationResult : never;
4
14
  /**
5
- * This defines our matchers as they can be used in actual tests, see
6
- * https://vitest.dev/guide/extending-matchers.html#extending-matchers
7
- * for reference
15
+ * Augmented matcher interface providing date comparison and day-of-week assertion methods for Vitest.
16
+ *
17
+ * Register these matchers via `expect.extend(allDateMatchers)` to use them in tests.
18
+ *
19
+ * @see https://vitest.dev/guide/extending-matchers.html#extending-matchers
8
20
  */
9
21
  interface AllDateMatchers {
10
22
  toBeBefore: DateMatcherTypeWithExpected<typeof toBeBefore>;
@@ -26,73 +38,146 @@ interface AllDateMatchers {
26
38
  toBeSunday: DateMatcherTypeWithoutExpected<typeof toBeSunday>;
27
39
  }
28
40
  /**
29
- * Check if a date is before another date.
41
+ * Asserts that the received date is chronologically before the expected date.
42
+ *
43
+ * @param received - The date under test
44
+ * @param expected - The date to compare against
45
+ * @returns Matcher result with a descriptive message on failure
30
46
  */
31
47
  declare function toBeBefore(this: MatcherState, received: Date, expected: Date): ExpectationResult;
32
48
  /**
33
- * Check if a date is after another date.
49
+ * Asserts that the received date is chronologically after the expected date.
50
+ *
51
+ * @param received - The date under test
52
+ * @param expected - The date to compare against
53
+ * @returns Matcher result with a descriptive message on failure
34
54
  */
35
55
  declare function toBeAfter(this: MatcherState, received: Date, expected: Date): ExpectationResult;
36
56
  /**
37
- * Check if a date is in the same second as another date.
57
+ * Asserts that the received date falls within the same calendar second as the expected date.
58
+ *
59
+ * @param received - The date under test
60
+ * @param expected - The date to compare against
61
+ * @returns Matcher result with a descriptive message on failure
38
62
  */
39
63
  declare function toBeSameSecondAs(this: MatcherState, received: Date, expected: Date): ExpectationResult;
40
64
  /**
41
- * Check if a date is in the same minute as another date.
65
+ * Asserts that the received date falls within the same calendar minute as the expected date.
66
+ *
67
+ * @param received - The date under test
68
+ * @param expected - The date to compare against
69
+ * @returns Matcher result with a descriptive message on failure
42
70
  */
43
71
  declare function toBeSameMinuteAs(this: MatcherState, received: Date, expected: Date): ExpectationResult;
44
72
  /**
45
- * Check if a date is in the same hour as another date.
73
+ * Asserts that the received date falls within the same calendar hour as the expected date.
74
+ *
75
+ * @param received - The date under test
76
+ * @param expected - The date to compare against
77
+ * @returns Matcher result with a descriptive message on failure
46
78
  */
47
79
  declare function toBeSameHourAs(this: MatcherState, received: Date, expected: Date): ExpectationResult;
48
80
  /**
49
- * Check if a date is in the same day as another date.
81
+ * Asserts that the received date falls on the same calendar day as the expected date.
82
+ *
83
+ * @param received - The date under test
84
+ * @param expected - The date to compare against
85
+ * @returns Matcher result with a descriptive message on failure
50
86
  */
51
87
  declare function toBeSameDayAs(this: MatcherState, received: Date, expected: Date): ExpectationResult;
52
88
  /**
53
- * Check if a date is in the same week as another date.
89
+ * Asserts that the received date falls within the same calendar week as the expected date.
90
+ *
91
+ * @param received - The date under test
92
+ * @param expected - The date to compare against
93
+ * @returns Matcher result with a descriptive message on failure
54
94
  */
55
95
  declare function toBeSameWeekAs(this: MatcherState, received: Date, expected: Date): ExpectationResult;
56
96
  /**
57
- * Check if a date is in the same month as another date.
97
+ * Asserts that the received date falls within the same calendar month as the expected date.
98
+ *
99
+ * @param received - The date under test
100
+ * @param expected - The date to compare against
101
+ * @returns Matcher result with a descriptive message on failure
58
102
  */
59
103
  declare function toBeSameMonthAs(this: MatcherState, received: Date, expected: Date): ExpectationResult;
60
104
  /**
61
- * Check if a date is in the same quarter as another date.
105
+ * Asserts that the received date falls within the same fiscal quarter as the expected date.
106
+ *
107
+ * @param received - The date under test
108
+ * @param expected - The date to compare against
109
+ * @returns Matcher result with a descriptive message on failure
62
110
  */
63
111
  declare function toBeSameQuarterAs(this: MatcherState, received: Date, expected: Date): ExpectationResult;
64
112
  /**
65
- * Check if a date is in the same year as another date.
113
+ * Asserts that the received date falls within the same calendar year as the expected date.
114
+ *
115
+ * @param received - The date under test
116
+ * @param expected - The date to compare against
117
+ * @returns Matcher result with a descriptive message on failure
66
118
  */
67
119
  declare function toBeSameYearAs(this: MatcherState, received: Date, expected: Date): ExpectationResult;
68
120
  /**
69
- * Check if a date is on a Monday.
121
+ * Asserts that the received date falls on a Monday.
122
+ *
123
+ * @param received - The date under test
124
+ * @returns Matcher result with a descriptive message on failure
70
125
  */
71
126
  declare function toBeMonday(this: MatcherState, received: Date): ExpectationResult;
72
127
  /**
73
- * Check if a date is on a Tuesday.
128
+ * Asserts that the received date falls on a Tuesday.
129
+ *
130
+ * @param received - The date under test
131
+ * @returns Matcher result with a descriptive message on failure
74
132
  */
75
133
  declare function toBeTuesday(this: MatcherState, received: Date): ExpectationResult;
76
134
  /**
77
- * Check if a date is on a Wednesday.
135
+ * Asserts that the received date falls on a Wednesday.
136
+ *
137
+ * @param received - The date under test
138
+ * @returns Matcher result with a descriptive message on failure
78
139
  */
79
140
  declare function toBeWednesday(this: MatcherState, received: Date): ExpectationResult;
80
141
  /**
81
- * Check if a date is on a Thursday.
142
+ * Asserts that the received date falls on a Thursday.
143
+ *
144
+ * @param received - The date under test
145
+ * @returns Matcher result with a descriptive message on failure
82
146
  */
83
147
  declare function toBeThursday(this: MatcherState, received: Date): ExpectationResult;
84
148
  /**
85
- * Check if a date is on a Friday.
149
+ * Asserts that the received date falls on a Friday.
150
+ *
151
+ * @param received - The date under test
152
+ * @returns Matcher result with a descriptive message on failure
86
153
  */
87
154
  declare function toBeFriday(this: MatcherState, received: Date): ExpectationResult;
88
155
  /**
89
- * Check if a date is on a Saturday.
156
+ * Asserts that the received date falls on a Saturday.
157
+ *
158
+ * @param received - The date under test
159
+ * @returns Matcher result with a descriptive message on failure
90
160
  */
91
161
  declare function toBeSaturday(this: MatcherState, received: Date): ExpectationResult;
92
162
  /**
93
- * Check if a date is on a Sunday.
163
+ * Asserts that the received date falls on a Sunday.
164
+ *
165
+ * @param received - The date under test
166
+ * @returns Matcher result with a descriptive message on failure
94
167
  */
95
168
  declare function toBeSunday(this: MatcherState, received: Date): ExpectationResult;
169
+ /**
170
+ * Object containing all date matcher implementations, ready to be registered with `expect.extend()`.
171
+ *
172
+ * @example
173
+ * ```typescript
174
+ * import { allDateMatchers } from '@dereekb/vitest';
175
+ * expect.extend(allDateMatchers);
176
+ *
177
+ * expect(new Date('2024-01-15')).toBeBefore(new Date('2024-02-01'));
178
+ * expect(new Date('2024-01-15')).toBeMonday();
179
+ * ```
180
+ */
96
181
  export declare const allDateMatchers: {
97
182
  toBeBefore: typeof toBeBefore;
98
183
  toBeAfter: typeof toBeAfter;
@@ -1,6 +1,10 @@
1
1
  import { isBefore, isAfter, isSameSecond, isSameMinute, isSameHour, isSameDay, isSameWeek, isSameMonth, isSameQuarter, isSameYear, getDay } from 'date-fns';
2
2
  /**
3
- * Check if a date is before another date.
3
+ * Asserts that the received date is chronologically before the expected date.
4
+ *
5
+ * @param received - The date under test
6
+ * @param expected - The date to compare against
7
+ * @returns Matcher result with a descriptive message on failure
4
8
  */
5
9
  function toBeBefore(received, expected) {
6
10
  const { isNot } = this;
@@ -13,7 +17,11 @@ function toBeBefore(received, expected) {
13
17
  };
14
18
  }
15
19
  /**
16
- * Check if a date is after another date.
20
+ * Asserts that the received date is chronologically after the expected date.
21
+ *
22
+ * @param received - The date under test
23
+ * @param expected - The date to compare against
24
+ * @returns Matcher result with a descriptive message on failure
17
25
  */
18
26
  function toBeAfter(received, expected) {
19
27
  const { isNot } = this;
@@ -26,7 +34,11 @@ function toBeAfter(received, expected) {
26
34
  };
27
35
  }
28
36
  /**
29
- * Check if a date is in the same second as another date.
37
+ * Asserts that the received date falls within the same calendar second as the expected date.
38
+ *
39
+ * @param received - The date under test
40
+ * @param expected - The date to compare against
41
+ * @returns Matcher result with a descriptive message on failure
30
42
  */
31
43
  function toBeSameSecondAs(received, expected) {
32
44
  const { isNot } = this;
@@ -39,7 +51,11 @@ function toBeSameSecondAs(received, expected) {
39
51
  };
40
52
  }
41
53
  /**
42
- * Check if a date is in the same minute as another date.
54
+ * Asserts that the received date falls within the same calendar minute as the expected date.
55
+ *
56
+ * @param received - The date under test
57
+ * @param expected - The date to compare against
58
+ * @returns Matcher result with a descriptive message on failure
43
59
  */
44
60
  function toBeSameMinuteAs(received, expected) {
45
61
  const { isNot } = this;
@@ -52,7 +68,11 @@ function toBeSameMinuteAs(received, expected) {
52
68
  };
53
69
  }
54
70
  /**
55
- * Check if a date is in the same hour as another date.
71
+ * Asserts that the received date falls within the same calendar hour as the expected date.
72
+ *
73
+ * @param received - The date under test
74
+ * @param expected - The date to compare against
75
+ * @returns Matcher result with a descriptive message on failure
56
76
  */
57
77
  function toBeSameHourAs(received, expected) {
58
78
  const { isNot } = this;
@@ -65,7 +85,11 @@ function toBeSameHourAs(received, expected) {
65
85
  };
66
86
  }
67
87
  /**
68
- * Check if a date is in the same day as another date.
88
+ * Asserts that the received date falls on the same calendar day as the expected date.
89
+ *
90
+ * @param received - The date under test
91
+ * @param expected - The date to compare against
92
+ * @returns Matcher result with a descriptive message on failure
69
93
  */
70
94
  function toBeSameDayAs(received, expected) {
71
95
  const { isNot } = this;
@@ -78,7 +102,11 @@ function toBeSameDayAs(received, expected) {
78
102
  };
79
103
  }
80
104
  /**
81
- * Check if a date is in the same week as another date.
105
+ * Asserts that the received date falls within the same calendar week as the expected date.
106
+ *
107
+ * @param received - The date under test
108
+ * @param expected - The date to compare against
109
+ * @returns Matcher result with a descriptive message on failure
82
110
  */
83
111
  function toBeSameWeekAs(received, expected) {
84
112
  const { isNot } = this;
@@ -91,7 +119,11 @@ function toBeSameWeekAs(received, expected) {
91
119
  };
92
120
  }
93
121
  /**
94
- * Check if a date is in the same month as another date.
122
+ * Asserts that the received date falls within the same calendar month as the expected date.
123
+ *
124
+ * @param received - The date under test
125
+ * @param expected - The date to compare against
126
+ * @returns Matcher result with a descriptive message on failure
95
127
  */
96
128
  function toBeSameMonthAs(received, expected) {
97
129
  const { isNot } = this;
@@ -104,7 +136,11 @@ function toBeSameMonthAs(received, expected) {
104
136
  };
105
137
  }
106
138
  /**
107
- * Check if a date is in the same quarter as another date.
139
+ * Asserts that the received date falls within the same fiscal quarter as the expected date.
140
+ *
141
+ * @param received - The date under test
142
+ * @param expected - The date to compare against
143
+ * @returns Matcher result with a descriptive message on failure
108
144
  */
109
145
  function toBeSameQuarterAs(received, expected) {
110
146
  const { isNot } = this;
@@ -117,7 +153,11 @@ function toBeSameQuarterAs(received, expected) {
117
153
  };
118
154
  }
119
155
  /**
120
- * Check if a date is in the same year as another date.
156
+ * Asserts that the received date falls within the same calendar year as the expected date.
157
+ *
158
+ * @param received - The date under test
159
+ * @param expected - The date to compare against
160
+ * @returns Matcher result with a descriptive message on failure
121
161
  */
122
162
  function toBeSameYearAs(received, expected) {
123
163
  const { isNot } = this;
@@ -130,7 +170,10 @@ function toBeSameYearAs(received, expected) {
130
170
  };
131
171
  }
132
172
  /**
133
- * Check if a date is on a Monday.
173
+ * Asserts that the received date falls on a Monday.
174
+ *
175
+ * @param received - The date under test
176
+ * @returns Matcher result with a descriptive message on failure
134
177
  */
135
178
  function toBeMonday(received) {
136
179
  const { isNot } = this;
@@ -142,7 +185,10 @@ function toBeMonday(received) {
142
185
  };
143
186
  }
144
187
  /**
145
- * Check if a date is on a Tuesday.
188
+ * Asserts that the received date falls on a Tuesday.
189
+ *
190
+ * @param received - The date under test
191
+ * @returns Matcher result with a descriptive message on failure
146
192
  */
147
193
  function toBeTuesday(received) {
148
194
  const { isNot } = this;
@@ -154,7 +200,10 @@ function toBeTuesday(received) {
154
200
  };
155
201
  }
156
202
  /**
157
- * Check if a date is on a Wednesday.
203
+ * Asserts that the received date falls on a Wednesday.
204
+ *
205
+ * @param received - The date under test
206
+ * @returns Matcher result with a descriptive message on failure
158
207
  */
159
208
  function toBeWednesday(received) {
160
209
  const { isNot } = this;
@@ -166,7 +215,10 @@ function toBeWednesday(received) {
166
215
  };
167
216
  }
168
217
  /**
169
- * Check if a date is on a Thursday.
218
+ * Asserts that the received date falls on a Thursday.
219
+ *
220
+ * @param received - The date under test
221
+ * @returns Matcher result with a descriptive message on failure
170
222
  */
171
223
  function toBeThursday(received) {
172
224
  const { isNot } = this;
@@ -178,7 +230,10 @@ function toBeThursday(received) {
178
230
  };
179
231
  }
180
232
  /**
181
- * Check if a date is on a Friday.
233
+ * Asserts that the received date falls on a Friday.
234
+ *
235
+ * @param received - The date under test
236
+ * @returns Matcher result with a descriptive message on failure
182
237
  */
183
238
  function toBeFriday(received) {
184
239
  const { isNot } = this;
@@ -190,7 +245,10 @@ function toBeFriday(received) {
190
245
  };
191
246
  }
192
247
  /**
193
- * Check if a date is on a Saturday.
248
+ * Asserts that the received date falls on a Saturday.
249
+ *
250
+ * @param received - The date under test
251
+ * @returns Matcher result with a descriptive message on failure
194
252
  */
195
253
  function toBeSaturday(received) {
196
254
  const { isNot } = this;
@@ -202,7 +260,10 @@ function toBeSaturday(received) {
202
260
  };
203
261
  }
204
262
  /**
205
- * Check if a date is on a Sunday.
263
+ * Asserts that the received date falls on a Sunday.
264
+ *
265
+ * @param received - The date under test
266
+ * @returns Matcher result with a descriptive message on failure
206
267
  */
207
268
  function toBeSunday(received) {
208
269
  const { isNot } = this;
@@ -213,6 +274,18 @@ function toBeSunday(received) {
213
274
  actual: received
214
275
  };
215
276
  }
277
+ /**
278
+ * Object containing all date matcher implementations, ready to be registered with `expect.extend()`.
279
+ *
280
+ * @example
281
+ * ```typescript
282
+ * import { allDateMatchers } from '@dereekb/vitest';
283
+ * expect.extend(allDateMatchers);
284
+ *
285
+ * expect(new Date('2024-01-15')).toBeBefore(new Date('2024-02-01'));
286
+ * expect(new Date('2024-01-15')).toBeMonday();
287
+ * ```
288
+ */
216
289
  export const allDateMatchers = {
217
290
  toBeBefore,
218
291
  toBeAfter,
@@ -1 +1 @@
1
- {"version":3,"file":"matcher.date.js","sourceRoot":"","sources":["../../../../../packages/vitest/src/lib/matcher.date.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAgC5J;;GAEG;AACH,SAAS,UAAU,CAAqB,QAAc,EAAE,QAAc;IACpE,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;IACvB,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAE1C,OAAO;QACL,IAAI;QACJ,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,QAAQ,CAAC,WAAW,EAAE,IAAI,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,gBAAgB,QAAQ,CAAC,WAAW,EAAE,EAAE;QAChH,MAAM,EAAE,QAAQ;QAChB,QAAQ;KACT,CA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