@dereekb/vitest 13.11.14 → 13.11.15

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.11.14",
3
+ "version": "13.11.15",
4
4
  "peerDependencies": {
5
5
  "@analogjs/vite-plugin-angular": "~2.5.0",
6
6
  "@analogjs/vitest-angular": "~2.5.0",
package/src/config.d.ts CHANGED
@@ -69,6 +69,8 @@ export interface DbxComponentsVitestPresetConfigOptions {
69
69
  *
70
70
  * @param options - Project-specific configuration options including project name, type, and paths.
71
71
  * @returns A Vitest {@link UserConfig} ready for use in `vitest.config.ts`.
72
+ * @throws {Error} When `type` is `'angular'` and `projectSpecificSetupFiles` is empty.
73
+ *
72
74
  * @__NO_SIDE_EFFECTS__
73
75
  */
74
76
  export declare function createVitestConfig(options: DbxComponentsVitestPresetConfigOptions): import("vitest/config").ViteUserConfigFnObject;
package/src/config.js CHANGED
@@ -27,6 +27,11 @@ const SETUP_SHIM_FILES = {
27
27
  * in `node_modules`. During workspace development, resolves to the root-level shim
28
28
  * file which re-exports from the package source via vite's tsconfig path resolution.
29
29
  *
30
+ * @param name - The setup file entry point name (e.g., 'setup-firebase', 'setup-angular').
31
+ * @param rootDir - Absolute path to the workspace root directory.
32
+ * @param pathFromRoot - Relative path from the workspace root to the consuming project.
33
+ * @returns Absolute or relative file path to the resolved setup file.
34
+ *
30
35
  * @example
31
36
  * ```typescript
32
37
  * // When @dereekb/vitest is installed from npm:
@@ -36,11 +41,6 @@ const SETUP_SHIM_FILES = {
36
41
  * // returns '/path/to/workspace/vitest.setup.firebase.ts'
37
42
  * resolveVitestSetupFile('setup-firebase', rootDir, pathFromRoot);
38
43
  * ```
39
- *
40
- * @param name - The setup file entry point name (e.g., 'setup-firebase', 'setup-angular').
41
- * @param rootDir - Absolute path to the workspace root directory.
42
- * @param pathFromRoot - Relative path from the workspace root to the consuming project.
43
- * @returns Absolute or relative file path to the resolved setup file.
44
44
  */
45
45
  function resolveVitestSetupFile(name, rootDir, pathFromRoot) {
46
46
  const _require = createRequire(path.resolve(rootDir, 'noop.js'));
@@ -71,6 +71,8 @@ function resolveVitestSetupFile(name, rootDir, pathFromRoot) {
71
71
  *
72
72
  * @param options - Project-specific configuration options including project name, type, and paths.
73
73
  * @returns A Vitest {@link UserConfig} ready for use in `vitest.config.ts`.
74
+ * @throws {Error} When `type` is `'angular'` and `projectSpecificSetupFiles` is empty.
75
+ *
74
76
  * @__NO_SIDE_EFFECTS__
75
77
  */
76
78
  export function createVitestConfig(options) {
@@ -133,12 +135,14 @@ export function createVitestConfig(options) {
133
135
  * See: https://github.com/firebase/firebase-tools-ui/issues/996#issuecomment-3954367815
134
136
  */
135
137
  pool = 'forks';
138
+ maxWorkers = Number(configuredMaxWorkers);
136
139
  }
137
140
  /**
138
141
  * Firebase emulator tests can be flaky due to emulator startup timing and network latency.
139
- * Retry only on vitest test/hook timeouts (matches "Test timed out in 5000ms." and
140
- * "Hook timed out in 10000ms.") so genuine assertion failures and other errors surface
141
- * immediately. Consumers can override via `test.retry`.
142
+ * Retry only on vitest test/hook timeouts so genuine assertion failures and other errors
143
+ * surface immediately. The pattern matches any duration, e.g. "Test timed out in 5000ms.",
144
+ * "Hook timed out in 10000ms.", and "Error: Hook timed out in 30000ms.". Consumers can
145
+ * override via `test.retry`.
142
146
  */
143
147
  retry = {
144
148
  count: 2,
package/src/config.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../packages/vitest/src/config.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,OAAO,OAAO,MAAM,+BAA+B,CAAC;AACpD,OAAO,EAAE,YAAY,EAAyB,MAAM,eAAe,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;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AAU,EAAE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,KAAK,MAAM,CAAC,CAAC;QAE1J,OAAO;YACL,IAAI,EAAE,YAAY;YAClB,QAAQ,EAAE,GAAG,UAAU,uBAAuB,WAAW,EAAE;YAC3D,OAAO;YACP,MAAM,EAAE;gBACN,EAAE,EAAE;oBACF,MAAM,EAAE,KAAK;iBACd;aACF;YACD,IAAI,EAAE;gBACJ,iBAAiB,EAAE,iBAAiB,IAAI,IAAI;gBAC5C,eAAe,EAAE,IAAI;gBACrB,KAAK,EAAE,KAAK;gBACZ,OAAO,EAAE,IAAI;gBACb,IAAI;gBACJ,UAAU;gBACV,KAAK;gBACL,GAAG,UAAU;gBACb,GAAG;gBACH,IAAI,EAAE,WAAW;gBACjB,WAAW;gBACX,OAAO,EAAE,CAAC,8DAA8D,CAAC;gBACzE,OAAO;gBACP,UAAU;gBACV,SAAS;gBACT;;;;;;;mBAOG;gBACH,OAAO;gBACP,QAAQ,EAAE;oBACR,gBAAgB,EAAE,GAAG,UAAU,aAAa,WAAW,EAAE;oBACzD,QAAQ,EAAE,IAAa;iBACxB;gBACD,QAAQ,EAAE;oBACR,GAAG,UAAU,EAAE,QAAQ;oBACvB,KAAK,EAAE,yBAAyB;iBACjC;aACF;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -40,130 +40,130 @@ interface AllDateMatchers {
40
40
  /**
41
41
  * Asserts that the received date is chronologically before the expected date.
42
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
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.
46
46
  */
47
47
  declare function toBeBefore(this: MatcherState, received: Date, expected: Date): SyncExpectationResult;
48
48
  /**
49
49
  * Asserts that the received date is chronologically after the expected date.
50
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
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.
54
54
  */
55
55
  declare function toBeAfter(this: MatcherState, received: Date, expected: Date): SyncExpectationResult;
56
56
  /**
57
57
  * Asserts that the received date falls within the same calendar second as the expected date.
58
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
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.
62
62
  */
63
63
  declare function toBeSameSecondAs(this: MatcherState, received: Date, expected: Date): SyncExpectationResult;
64
64
  /**
65
65
  * Asserts that the received date falls within the same calendar minute as the expected date.
66
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
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.
70
70
  */
71
71
  declare function toBeSameMinuteAs(this: MatcherState, received: Date, expected: Date): SyncExpectationResult;
72
72
  /**
73
73
  * Asserts that the received date falls within the same calendar hour as the expected date.
74
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
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.
78
78
  */
79
79
  declare function toBeSameHourAs(this: MatcherState, received: Date, expected: Date): SyncExpectationResult;
80
80
  /**
81
81
  * Asserts that the received date falls on the same calendar day as the expected date.
82
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
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.
86
86
  */
87
87
  declare function toBeSameDayAs(this: MatcherState, received: Date, expected: Date): SyncExpectationResult;
88
88
  /**
89
89
  * Asserts that the received date falls within the same calendar week as the expected date.
90
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
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.
94
94
  */
95
95
  declare function toBeSameWeekAs(this: MatcherState, received: Date, expected: Date): SyncExpectationResult;
96
96
  /**
97
97
  * Asserts that the received date falls within the same calendar month as the expected date.
98
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
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.
102
102
  */
103
103
  declare function toBeSameMonthAs(this: MatcherState, received: Date, expected: Date): SyncExpectationResult;
104
104
  /**
105
105
  * Asserts that the received date falls within the same fiscal quarter as the expected date.
106
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
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.
110
110
  */
111
111
  declare function toBeSameQuarterAs(this: MatcherState, received: Date, expected: Date): SyncExpectationResult;
112
112
  /**
113
113
  * Asserts that the received date falls within the same calendar year as the expected date.
114
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
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.
118
118
  */
119
119
  declare function toBeSameYearAs(this: MatcherState, received: Date, expected: Date): SyncExpectationResult;
120
120
  /**
121
121
  * Asserts that the received date falls on a Monday.
122
122
  *
123
- * @param received - The date under test
124
- * @returns Matcher result with a descriptive message on failure
123
+ * @param received - The date under test.
124
+ * @returns Matcher result with a descriptive message on failure.
125
125
  */
126
126
  declare function toBeMonday(this: MatcherState, received: Date): SyncExpectationResult;
127
127
  /**
128
128
  * Asserts that the received date falls on a Tuesday.
129
129
  *
130
- * @param received - The date under test
131
- * @returns Matcher result with a descriptive message on failure
130
+ * @param received - The date under test.
131
+ * @returns Matcher result with a descriptive message on failure.
132
132
  */
133
133
  declare function toBeTuesday(this: MatcherState, received: Date): SyncExpectationResult;
134
134
  /**
135
135
  * Asserts that the received date falls on a Wednesday.
136
136
  *
137
- * @param received - The date under test
138
- * @returns Matcher result with a descriptive message on failure
137
+ * @param received - The date under test.
138
+ * @returns Matcher result with a descriptive message on failure.
139
139
  */
140
140
  declare function toBeWednesday(this: MatcherState, received: Date): SyncExpectationResult;
141
141
  /**
142
142
  * Asserts that the received date falls on a Thursday.
143
143
  *
144
- * @param received - The date under test
145
- * @returns Matcher result with a descriptive message on failure
144
+ * @param received - The date under test.
145
+ * @returns Matcher result with a descriptive message on failure.
146
146
  */
147
147
  declare function toBeThursday(this: MatcherState, received: Date): SyncExpectationResult;
148
148
  /**
149
149
  * Asserts that the received date falls on a Friday.
150
150
  *
151
- * @param received - The date under test
152
- * @returns Matcher result with a descriptive message on failure
151
+ * @param received - The date under test.
152
+ * @returns Matcher result with a descriptive message on failure.
153
153
  */
154
154
  declare function toBeFriday(this: MatcherState, received: Date): SyncExpectationResult;
155
155
  /**
156
156
  * Asserts that the received date falls on a Saturday.
157
157
  *
158
- * @param received - The date under test
159
- * @returns Matcher result with a descriptive message on failure
158
+ * @param received - The date under test.
159
+ * @returns Matcher result with a descriptive message on failure.
160
160
  */
161
161
  declare function toBeSaturday(this: MatcherState, received: Date): SyncExpectationResult;
162
162
  /**
163
163
  * Asserts that the received date falls on a Sunday.
164
164
  *
165
- * @param received - The date under test
166
- * @returns Matcher result with a descriptive message on failure
165
+ * @param received - The date under test.
166
+ * @returns Matcher result with a descriptive message on failure.
167
167
  */
168
168
  declare function toBeSunday(this: MatcherState, received: Date): SyncExpectationResult;
169
169
  /**
@@ -2,9 +2,9 @@ import { isBefore, isAfter, isSameSecond, isSameMinute, isSameHour, isSameDay, i
2
2
  /**
3
3
  * Asserts that the received date is chronologically before the expected date.
4
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
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.
8
8
  */
9
9
  function toBeBefore(received, expected) {
10
10
  const { isNot } = this;
@@ -19,9 +19,9 @@ function toBeBefore(received, expected) {
19
19
  /**
20
20
  * Asserts that the received date is chronologically after the expected date.
21
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
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.
25
25
  */
26
26
  function toBeAfter(received, expected) {
27
27
  const { isNot } = this;
@@ -36,9 +36,9 @@ function toBeAfter(received, expected) {
36
36
  /**
37
37
  * Asserts that the received date falls within the same calendar second as the expected date.
38
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
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.
42
42
  */
43
43
  function toBeSameSecondAs(received, expected) {
44
44
  const { isNot } = this;
@@ -53,9 +53,9 @@ function toBeSameSecondAs(received, expected) {
53
53
  /**
54
54
  * Asserts that the received date falls within the same calendar minute as the expected date.
55
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
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.
59
59
  */
60
60
  function toBeSameMinuteAs(received, expected) {
61
61
  const { isNot } = this;
@@ -70,9 +70,9 @@ function toBeSameMinuteAs(received, expected) {
70
70
  /**
71
71
  * Asserts that the received date falls within the same calendar hour as the expected date.
72
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
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.
76
76
  */
77
77
  function toBeSameHourAs(received, expected) {
78
78
  const { isNot } = this;
@@ -87,9 +87,9 @@ function toBeSameHourAs(received, expected) {
87
87
  /**
88
88
  * Asserts that the received date falls on the same calendar day as the expected date.
89
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
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.
93
93
  */
94
94
  function toBeSameDayAs(received, expected) {
95
95
  const { isNot } = this;
@@ -104,9 +104,9 @@ function toBeSameDayAs(received, expected) {
104
104
  /**
105
105
  * Asserts that the received date falls within the same calendar week as the expected date.
106
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
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.
110
110
  */
111
111
  function toBeSameWeekAs(received, expected) {
112
112
  const { isNot } = this;
@@ -121,9 +121,9 @@ function toBeSameWeekAs(received, expected) {
121
121
  /**
122
122
  * Asserts that the received date falls within the same calendar month as the expected date.
123
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
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.
127
127
  */
128
128
  function toBeSameMonthAs(received, expected) {
129
129
  const { isNot } = this;
@@ -138,9 +138,9 @@ function toBeSameMonthAs(received, expected) {
138
138
  /**
139
139
  * Asserts that the received date falls within the same fiscal quarter as the expected date.
140
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
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.
144
144
  */
145
145
  function toBeSameQuarterAs(received, expected) {
146
146
  const { isNot } = this;
@@ -155,9 +155,9 @@ function toBeSameQuarterAs(received, expected) {
155
155
  /**
156
156
  * Asserts that the received date falls within the same calendar year as the expected date.
157
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
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.
161
161
  */
162
162
  function toBeSameYearAs(received, expected) {
163
163
  const { isNot } = this;
@@ -172,8 +172,8 @@ function toBeSameYearAs(received, expected) {
172
172
  /**
173
173
  * Asserts that the received date falls on a Monday.
174
174
  *
175
- * @param received - The date under test
176
- * @returns Matcher result with a descriptive message on failure
175
+ * @param received - The date under test.
176
+ * @returns Matcher result with a descriptive message on failure.
177
177
  */
178
178
  function toBeMonday(received) {
179
179
  const { isNot } = this;
@@ -187,8 +187,8 @@ function toBeMonday(received) {
187
187
  /**
188
188
  * Asserts that the received date falls on a Tuesday.
189
189
  *
190
- * @param received - The date under test
191
- * @returns Matcher result with a descriptive message on failure
190
+ * @param received - The date under test.
191
+ * @returns Matcher result with a descriptive message on failure.
192
192
  */
193
193
  function toBeTuesday(received) {
194
194
  const { isNot } = this;
@@ -202,8 +202,8 @@ function toBeTuesday(received) {
202
202
  /**
203
203
  * Asserts that the received date falls on a Wednesday.
204
204
  *
205
- * @param received - The date under test
206
- * @returns Matcher result with a descriptive message on failure
205
+ * @param received - The date under test.
206
+ * @returns Matcher result with a descriptive message on failure.
207
207
  */
208
208
  function toBeWednesday(received) {
209
209
  const { isNot } = this;
@@ -217,8 +217,8 @@ function toBeWednesday(received) {
217
217
  /**
218
218
  * Asserts that the received date falls on a Thursday.
219
219
  *
220
- * @param received - The date under test
221
- * @returns Matcher result with a descriptive message on failure
220
+ * @param received - The date under test.
221
+ * @returns Matcher result with a descriptive message on failure.
222
222
  */
223
223
  function toBeThursday(received) {
224
224
  const { isNot } = this;
@@ -232,8 +232,8 @@ function toBeThursday(received) {
232
232
  /**
233
233
  * Asserts that the received date falls on a Friday.
234
234
  *
235
- * @param received - The date under test
236
- * @returns Matcher result with a descriptive message on failure
235
+ * @param received - The date under test.
236
+ * @returns Matcher result with a descriptive message on failure.
237
237
  */
238
238
  function toBeFriday(received) {
239
239
  const { isNot } = this;
@@ -247,8 +247,8 @@ function toBeFriday(received) {
247
247
  /**
248
248
  * Asserts that the received date falls on a Saturday.
249
249
  *
250
- * @param received - The date under test
251
- * @returns Matcher result with a descriptive message on failure
250
+ * @param received - The date under test.
251
+ * @returns Matcher result with a descriptive message on failure.
252
252
  */
253
253
  function toBeSaturday(received) {
254
254
  const { isNot } = this;
@@ -262,8 +262,8 @@ function toBeSaturday(received) {
262
262
  /**
263
263
  * Asserts that the received date falls on a Sunday.
264
264
  *
265
- * @param received - The date under test
266
- * @returns Matcher result with a descriptive message on failure
265
+ * @param received - The date under test.
266
+ * @returns Matcher result with a descriptive message on failure.
267
267
  */
268
268
  function toBeSunday(received) {
269
269
  const { isNot } = this;