@thorprovider/adapters 5.0.10 → 5.0.11

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.
@@ -1,12 +1,8 @@
1
1
 
2
2
  RUN v3.2.4 /home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters
3
3
 
4
- ✓ src/providers/stelorder/transforms.test.ts (6 tests) 35ms
5
- ↓ src/providers/stelorder/live-smoke.test.ts (1 test | 1 skipped)
6
- Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/index.js" points to missing source files
7
- Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/index.js" points to missing source files
8
4
  stderr | src/providers/medusa/auth.test.ts > MedusaAuthProvider > throws ProviderAPIError with login code on auth failure
9
- [2026-09-23T21:33:37.120Z] [@thorprovider/adapters:MedusaAuthProvider] ERROR: Login failed Error: bad credentials
5
+ [2026-10-10T14:20:48.966Z] [@thorprovider/adapters:MedusaAuthProvider] ERROR: Login failed Error: bad credentials
10
6
  at /home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/src/providers/medusa/auth.test.ts:75:48
11
7
  at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:155:11
12
8
  at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:752:26
@@ -18,15 +14,16 @@ stderr | src/providers/medusa/auth.test.ts > MedusaAuthProvider > throws Provide
18
14
  at runSuite (file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:1729:8)
19
15
  at runSuite (file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:1729:8)
20
16
 
17
+ ✓ src/providers/medusa/auth.test.ts (5 tests) 51ms
18
+ ✓ src/providers/mock/index.test.ts (3 tests) 17ms
19
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/index.js" points to missing source files
20
+ ✓ src/providers/mock/catalog-query.test.ts (24 tests) 62ms
21
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/index.js" points to missing source files
21
22
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/api-key.js" points to missing source files
22
23
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/campaign.js" points to missing source files
23
- ✓ src/providers/stelorder/index.test.ts (2 tests) 150ms
24
- ✓ src/providers/medusa/auth.test.ts (5 tests) 138ms
25
24
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/claim.js" points to missing source files
26
- ✓ src/providers/stelorder/client.test.ts (3 tests) 189ms
27
25
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/currency.js" points to missing source files
28
26
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/customer.js" points to missing source files
29
- ✓ src/providers/medusa/admin.test.ts (19 tests) 245ms
30
27
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/customer-group.js" points to missing source files
31
28
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/draft-order.js" points to missing source files
32
29
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/exchange.js" points to missing source files
@@ -39,6 +36,11 @@ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modu
39
36
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/order.js" points to missing source files
40
37
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/order-edit.js" points to missing source files
41
38
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/payment.js" points to missing source files
39
+ ✓ src/providers/medusa/admin.test.ts (19 tests) 868ms
40
+ ✓ MedusaAdminClient.getChannelCategories > GET /admin/thor/sales-channels/:id/categories with include_descendants 319ms
41
+ ✓ src/providers/stelorder/client.test.ts (3 tests) 543ms
42
+ ✓ src/providers/stelorder/index.test.ts (2 tests) 472ms
43
+ ✓ StelOrderProvider > returns storefront context and supports read methods 439ms
42
44
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/payment-collection.js" points to missing source files
43
45
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/plugin.js" points to missing source files
44
46
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/price-list.js" points to missing source files
@@ -50,6 +52,7 @@ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modu
50
52
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/product-tag.js" points to missing source files
51
53
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/product-type.js" points to missing source files
52
54
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/product-variant.js" points to missing source files
55
+ ✓ src/factory/provider-types.test.ts (4 tests) 86ms
53
56
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/promotion.js" points to missing source files
54
57
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/refund-reasons.js" points to missing source files
55
58
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/region.js" points to missing source files
@@ -59,6 +62,7 @@ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modu
59
62
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/sales-channel.js" points to missing source files
60
63
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/shipping-option.js" points to missing source files
61
64
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/shipping-profile.js" points to missing source files
65
+ ✓ src/providers/medusa/transforms.test.ts (12 tests) 60ms
62
66
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/stock-location.js" points to missing source files
63
67
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/store.js" points to missing source files
64
68
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/tax-provider.js" points to missing source files
@@ -75,7 +79,22 @@ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modu
75
79
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/rbac-policy.js" points to missing source files
76
80
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/auth/index.js" points to missing source files
77
81
  Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/store/index.js" points to missing source files
78
- ↓ src/providers/medusa/live-smoke.test.ts (1 test | 1 skipped)
82
+ ↓ src/providers/stelorder/live-smoke.test.ts (1 test | 1 skipped)
83
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > advertises exactly the canonical sorts it can apply, with no price/rating sort
84
+ [MSW] Error: intercepted a request without a matching request handler:
85
+
86
+ • GET https://medusa.example.com/store/thor/capabilities
87
+
88
+ If you still wish to intercept this unhandled request, please create a request handler for it.
89
+ Read more: https://mswjs.io/docs/http/intercepting-requests
90
+
91
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getCategoryProducts maps name → title
92
+ [2026-10-10T14:20:53.055Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
93
+ url: 'https://medusa.example.com/store/thor/capabilities',
94
+ totalAttempts: 1,
95
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
96
+ }
97
+
79
98
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct returns transformed product when found
80
99
  [MSW] Error: intercepted a request without a matching request handler:
81
100
 
@@ -84,8 +103,9 @@ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getP
84
103
  If you still wish to intercept this unhandled request, please create a request handler for it.
85
104
  Read more: https://mswjs.io/docs/http/intercepting-requests
86
105
 
106
+ ↓ src/providers/medusa/live-smoke.test.ts (3 tests | 3 skipped)
87
107
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct returns transformed product when found
88
- [2026-09-23T21:33:38.308Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
108
+ [2026-10-10T14:20:53.156Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
89
109
  url: 'https://medusa.example.com/store/thor/capabilities',
90
110
  totalAttempts: 1,
91
111
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -100,7 +120,7 @@ If you still wish to intercept this unhandled request, please create a request h
100
120
  Read more: https://mswjs.io/docs/http/intercepting-requests
101
121
 
102
122
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct returns undefined when not found
103
- [2026-09-23T21:33:38.325Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
123
+ [2026-10-10T14:20:53.175Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
104
124
  url: 'https://medusa.example.com/store/thor/capabilities',
105
125
  totalAttempts: 1,
106
126
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -115,14 +135,235 @@ If you still wish to intercept this unhandled request, please create a request h
115
135
  Read more: https://mswjs.io/docs/http/intercepting-requests
116
136
 
117
137
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct throws ProviderAPIError on 503
118
- [2026-09-23T21:33:38.335Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
138
+ [2026-10-10T14:20:53.194Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
139
+ url: 'https://medusa.example.com/store/thor/capabilities',
140
+ totalAttempts: 1,
141
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
142
+ }
143
+
144
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getCategoryProducts maps name → title
145
+ [MSW] Error: intercepted a request without a matching request handler:
146
+
147
+ • GET https://medusa.example.com/store/thor/capabilities
148
+
149
+ If you still wish to intercept this unhandled request, please create a request handler for it.
150
+ Read more: https://mswjs.io/docs/http/intercepting-requests
151
+
152
+ ✓ src/providers/stelorder/transforms.test.ts (6 tests) 131ms
153
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getCategoryProducts maps name → title
154
+ [2026-10-10T14:20:53.285Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
155
+ url: 'https://medusa.example.com/store/thor/capabilities',
156
+ totalAttempts: 1,
157
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
158
+ }
159
+
160
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getCategoryProducts maps newest → -created_at
161
+ [MSW] Error: intercepted a request without a matching request handler:
162
+
163
+ • GET https://medusa.example.com/store/thor/capabilities
164
+
165
+ If you still wish to intercept this unhandled request, please create a request handler for it.
166
+ Read more: https://mswjs.io/docs/http/intercepting-requests
167
+
168
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getCategoryProducts maps newest → -created_at
169
+ [2026-10-10T14:20:53.360Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
170
+ url: 'https://medusa.example.com/store/thor/capabilities',
171
+ totalAttempts: 1,
172
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
173
+ }
174
+
175
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getCategoryProducts omits order for featured (server default)
176
+ [MSW] Error: intercepted a request without a matching request handler:
177
+
178
+ • GET https://medusa.example.com/store/thor/capabilities
179
+
180
+ If you still wish to intercept this unhandled request, please create a request handler for it.
181
+ Read more: https://mswjs.io/docs/http/intercepting-requests
182
+
183
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getCategoryProducts omits order for featured (server default)
184
+ [2026-10-10T14:20:53.398Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
185
+ url: 'https://medusa.example.com/store/thor/capabilities',
186
+ totalAttempts: 1,
187
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
188
+ }
189
+
190
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > never emits a raw canonical key as the Medusa order field
191
+ [MSW] Error: intercepted a request without a matching request handler:
192
+
193
+ • GET https://medusa.example.com/store/thor/capabilities
194
+
195
+ If you still wish to intercept this unhandled request, please create a request handler for it.
196
+ Read more: https://mswjs.io/docs/http/intercepting-requests
197
+
198
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > never emits a raw canonical key as the Medusa order field
199
+ [2026-10-10T14:20:53.473Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
200
+ url: 'https://medusa.example.com/store/thor/capabilities',
201
+ totalAttempts: 1,
202
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
203
+ }
204
+
205
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > never emits a raw canonical key as the Medusa order field
206
+ [MSW] Error: intercepted a request without a matching request handler:
207
+
208
+ • GET https://medusa.example.com/store/thor/capabilities
209
+
210
+ If you still wish to intercept this unhandled request, please create a request handler for it.
211
+ Read more: https://mswjs.io/docs/http/intercepting-requests
212
+
213
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > never emits a raw canonical key as the Medusa order field
214
+ [2026-10-10T14:20:53.515Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
215
+ url: 'https://medusa.example.com/store/thor/capabilities',
216
+ totalAttempts: 1,
217
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
218
+ }
219
+
220
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > never emits a raw canonical key as the Medusa order field
221
+ [MSW] Error: intercepted a request without a matching request handler:
222
+
223
+ • GET https://medusa.example.com/store/thor/capabilities
224
+
225
+ If you still wish to intercept this unhandled request, please create a request handler for it.
226
+ Read more: https://mswjs.io/docs/http/intercepting-requests
227
+
228
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > never emits a raw canonical key as the Medusa order field
229
+ [2026-10-10T14:20:53.552Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
230
+ url: 'https://medusa.example.com/store/thor/capabilities',
231
+ totalAttempts: 1,
232
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
233
+ }
234
+
235
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > omits a page-local price/rating sort instead of sending it as a global order (no default price sort, not mislabelled)
236
+ [MSW] Error: intercepted a request without a matching request handler:
237
+
238
+ • GET https://medusa.example.com/store/thor/capabilities
239
+
240
+ If you still wish to intercept this unhandled request, please create a request handler for it.
241
+ Read more: https://mswjs.io/docs/http/intercepting-requests
242
+
243
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > omits a page-local price/rating sort instead of sending it as a global order (no default price sort, not mislabelled)
244
+ [2026-10-10T14:20:53.577Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
245
+ url: 'https://medusa.example.com/store/thor/capabilities',
246
+ totalAttempts: 1,
247
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
248
+ }
249
+
250
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > omits a page-local price/rating sort instead of sending it as a global order (no default price sort, not mislabelled)
251
+ [MSW] Error: intercepted a request without a matching request handler:
252
+
253
+ • GET https://medusa.example.com/store/thor/capabilities
254
+
255
+ If you still wish to intercept this unhandled request, please create a request handler for it.
256
+ Read more: https://mswjs.io/docs/http/intercepting-requests
257
+
258
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > omits a page-local price/rating sort instead of sending it as a global order (no default price sort, not mislabelled)
259
+ [2026-10-10T14:20:53.597Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
260
+ url: 'https://medusa.example.com/store/thor/capabilities',
261
+ totalAttempts: 1,
262
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
263
+ }
264
+
265
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > omits a page-local price/rating sort instead of sending it as a global order (no default price sort, not mislabelled)
266
+ [MSW] Error: intercepted a request without a matching request handler:
267
+
268
+ • GET https://medusa.example.com/store/thor/capabilities
269
+
270
+ If you still wish to intercept this unhandled request, please create a request handler for it.
271
+ Read more: https://mswjs.io/docs/http/intercepting-requests
272
+
273
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > omits a page-local price/rating sort instead of sending it as a global order (no default price sort, not mislabelled)
274
+ [2026-10-10T14:20:53.628Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
119
275
  url: 'https://medusa.example.com/store/thor/capabilities',
120
276
  totalAttempts: 1,
121
277
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
122
278
  }
123
279
 
280
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getProducts maps the same canonical keys through the same mapping
281
+ [MSW] Error: intercepted a request without a matching request handler:
282
+
283
+ • GET https://medusa.example.com/store/thor/capabilities
284
+
285
+ If you still wish to intercept this unhandled request, please create a request handler for it.
286
+ Read more: https://mswjs.io/docs/http/intercepting-requests
287
+
288
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getProducts maps the same canonical keys through the same mapping
289
+ [2026-10-10T14:20:53.644Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
290
+ url: 'https://medusa.example.com/store/thor/capabilities',
291
+ totalAttempts: 1,
292
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
293
+ }
294
+
295
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getProducts maps the same canonical keys through the same mapping
296
+ [MSW] Error: intercepted a request without a matching request handler:
297
+
298
+ • GET https://medusa.example.com/store/thor/capabilities
299
+
300
+ If you still wish to intercept this unhandled request, please create a request handler for it.
301
+ Read more: https://mswjs.io/docs/http/intercepting-requests
302
+
303
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getProducts maps the same canonical keys through the same mapping
304
+ [2026-10-10T14:20:53.661Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
305
+ url: 'https://medusa.example.com/store/thor/capabilities',
306
+ totalAttempts: 1,
307
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
308
+ }
309
+
310
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getProducts maps the same canonical keys through the same mapping
311
+ [MSW] Error: intercepted a request without a matching request handler:
312
+
313
+ • GET https://medusa.example.com/store/thor/capabilities
314
+
315
+ If you still wish to intercept this unhandled request, please create a request handler for it.
316
+ Read more: https://mswjs.io/docs/http/intercepting-requests
317
+
318
+ stderr | src/providers/medusa/catalog-sort.test.ts > MedusaProvider — catalog sort translation and advertisement > getProducts maps the same canonical keys through the same mapping
319
+ [2026-10-10T14:20:53.671Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
320
+ url: 'https://medusa.example.com/store/thor/capabilities',
321
+ totalAttempts: 1,
322
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
323
+ }
324
+
325
+ ✓ src/providers/medusa/available-filters.test.ts (9 tests) 643ms
326
+ ✓ MedusaProvider.getAvailableFilters — facet truthfulness > emits no price range when the backend supplies no price metadata (never 0..10000) 399ms
327
+ ✓ src/providers/medusa/catalog-sort.test.ts (7 tests) 659ms
328
+ ✓ src/providers/medusa/catalog-query.test.ts (18 tests) 846ms
329
+ ✓ MedusaProvider.getCatalogProducts — canonical query forwarding > forwards text as q and reports it as an applied filter 313ms
330
+ stderr | src/providers/medusa/catalog-facet-support.test.ts > MedusaProvider.searchProductsAdvanced — faithful fallback > rejects an advanced request instead of silently returning unfiltered products
331
+ [2026-10-10T14:20:53.963Z] [@thorprovider/adapters:MedusaProvider] ERROR: Advanced search failed, using faithful fallback {
332
+ error: 'Search API returned 404: Not Found',
333
+ stack: 'Error: Search API returned 404: Not Found\n' +
334
+ ' at MedusaProvider.searchProductsAdvanced (/home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/src/providers/medusa/index.ts:1700:15)\n' +
335
+ ' at processTicksAndRejections (node:internal/process/task_queues:103:5)\n' +
336
+ ' at /home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/src/providers/medusa/catalog-facet-support.test.ts:524:5\n' +
337
+ ' at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:752:20'
338
+ }
339
+
340
+ stderr | src/providers/medusa/catalog-facet-support.test.ts > MedusaProvider.searchProductsAdvanced — faithful fallback > still serves a basic-only caller through the getProducts fallback
341
+ [2026-10-10T14:20:53.975Z] [@thorprovider/adapters:MedusaProvider] ERROR: Advanced search failed, using faithful fallback {
342
+ error: 'Search API returned 404: Not Found',
343
+ stack: 'Error: Search API returned 404: Not Found\n' +
344
+ ' at MedusaProvider.searchProductsAdvanced (/home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/src/providers/medusa/index.ts:1700:15)\n' +
345
+ ' at processTicksAndRejections (node:internal/process/task_queues:103:5)\n' +
346
+ ' at /home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/src/providers/medusa/catalog-facet-support.test.ts:533:20\n' +
347
+ ' at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:752:20'
348
+ }
349
+
350
+ stderr | src/providers/medusa/catalog-facet-support.test.ts > real Medusa + Meilisearch: advanced facets reflect backend truth > price narrows the result set and echoes price_range; inStock offered; attributes held
351
+ [MSW] Error: intercepted a request without a matching request handler:
352
+
353
+ • GET http://localhost:9000/store/thor/capabilities
354
+
355
+ If you still wish to intercept this unhandled request, please create a request handler for it.
356
+ Read more: https://mswjs.io/docs/http/intercepting-requests
357
+
358
+ stderr | src/providers/medusa/catalog-facet-support.test.ts > real Medusa + Meilisearch: advanced facets reflect backend truth > price narrows the result set and echoes price_range; inStock offered; attributes held
359
+ [2026-10-10T14:20:54.052Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
360
+ url: 'http://localhost:9000/store/thor/capabilities',
361
+ totalAttempts: 1,
362
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
363
+ }
364
+
124
365
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct throws ProviderAPIError on 503
125
- [2026-09-23T21:33:40.449Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProduct failed after all retries {
366
+ [2026-10-10T14:20:55.317Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProduct failed after all retries {
126
367
  handle: 'any-handle',
127
368
  regionId: undefined,
128
369
  totalAttempts: 4,
@@ -138,7 +379,7 @@ If you still wish to intercept this unhandled request, please create a request h
138
379
  Read more: https://mswjs.io/docs/http/intercepting-requests
139
380
 
140
381
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProducts returns array of transformed products
141
- [2026-09-23T21:33:40.461Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
382
+ [2026-10-10T14:20:55.358Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
142
383
  url: 'https://medusa.example.com/store/thor/capabilities',
143
384
  totalAttempts: 1,
144
385
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -153,7 +394,97 @@ If you still wish to intercept this unhandled request, please create a request h
153
394
  Read more: https://mswjs.io/docs/http/intercepting-requests
154
395
 
155
396
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProducts returns empty array when backend returns none
156
- [2026-09-23T21:33:40.468Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
397
+ [2026-10-10T14:20:55.428Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
398
+ url: 'https://medusa.example.com/store/thor/capabilities',
399
+ totalAttempts: 1,
400
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
401
+ }
402
+
403
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > getProducts uses the configured default bound (50), not an unbounded scan
404
+ [MSW] Error: intercepted a request without a matching request handler:
405
+
406
+ • GET https://medusa.example.com/store/thor/capabilities
407
+
408
+ If you still wish to intercept this unhandled request, please create a request handler for it.
409
+ Read more: https://mswjs.io/docs/http/intercepting-requests
410
+
411
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > getProducts uses the configured default bound (50), not an unbounded scan
412
+ [2026-10-10T14:20:55.452Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
413
+ url: 'https://medusa.example.com/store/thor/capabilities',
414
+ totalAttempts: 1,
415
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
416
+ }
417
+
418
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > getProducts honors an explicit configured bound
419
+ [MSW] Error: intercepted a request without a matching request handler:
420
+
421
+ • GET https://medusa.example.com/store/thor/capabilities
422
+
423
+ If you still wish to intercept this unhandled request, please create a request handler for it.
424
+ Read more: https://mswjs.io/docs/http/intercepting-requests
425
+
426
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > getProducts honors an explicit configured bound
427
+ [2026-10-10T14:20:55.458Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
428
+ url: 'https://medusa.example.com/store/thor/capabilities',
429
+ totalAttempts: 1,
430
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
431
+ }
432
+
433
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > getProducts paginates per request with first + after (count/offset)
434
+ [MSW] Error: intercepted a request without a matching request handler:
435
+
436
+ • GET https://medusa.example.com/store/thor/capabilities
437
+
438
+ If you still wish to intercept this unhandled request, please create a request handler for it.
439
+ Read more: https://mswjs.io/docs/http/intercepting-requests
440
+
441
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > getProducts paginates per request with first + after (count/offset)
442
+ [2026-10-10T14:20:55.465Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
443
+ url: 'https://medusa.example.com/store/thor/capabilities',
444
+ totalAttempts: 1,
445
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
446
+ }
447
+
448
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > getProduct resolves by handle with a single directed query (limit 1), never a scan
449
+ [MSW] Error: intercepted a request without a matching request handler:
450
+
451
+ • GET https://medusa.example.com/store/thor/capabilities
452
+
453
+ If you still wish to intercept this unhandled request, please create a request handler for it.
454
+ Read more: https://mswjs.io/docs/http/intercepting-requests
455
+
456
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > getProduct resolves by handle with a single directed query (limit 1), never a scan
457
+ [2026-10-10T14:20:55.472Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
458
+ url: 'https://medusa.example.com/store/thor/capabilities',
459
+ totalAttempts: 1,
460
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
461
+ }
462
+
463
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > getProductById resolves by id with a directed query, independent of the first page
464
+ [MSW] Error: intercepted a request without a matching request handler:
465
+
466
+ • GET https://medusa.example.com/store/thor/capabilities
467
+
468
+ If you still wish to intercept this unhandled request, please create a request handler for it.
469
+ Read more: https://mswjs.io/docs/http/intercepting-requests
470
+
471
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > getProductById resolves by id with a directed query, independent of the first page
472
+ [2026-10-10T14:20:55.480Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
473
+ url: 'https://medusa.example.com/store/thor/capabilities',
474
+ totalAttempts: 1,
475
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
476
+ }
477
+
478
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > a product beyond a >200 dataset resolves by handle without scanning the listing
479
+ [MSW] Error: intercepted a request without a matching request handler:
480
+
481
+ • GET https://medusa.example.com/store/thor/capabilities
482
+
483
+ If you still wish to intercept this unhandled request, please create a request handler for it.
484
+ Read more: https://mswjs.io/docs/http/intercepting-requests
485
+
486
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Catalog pagination and directed lookup > a product beyond a >200 dataset resolves by handle without scanning the listing
487
+ [2026-10-10T14:20:55.486Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
157
488
  url: 'https://medusa.example.com/store/thor/capabilities',
158
489
  totalAttempts: 1,
159
490
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -168,7 +499,7 @@ If you still wish to intercept this unhandled request, please create a request h
168
499
  Read more: https://mswjs.io/docs/http/intercepting-requests
169
500
 
170
501
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart returns a cart with an id
171
- [2026-09-23T21:33:40.475Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
502
+ [2026-10-10T14:20:55.498Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
172
503
  url: 'https://medusa.example.com/store/thor/capabilities',
173
504
  totalAttempts: 1,
174
505
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -183,7 +514,37 @@ If you still wish to intercept this unhandled request, please create a request h
183
514
  Read more: https://mswjs.io/docs/http/intercepting-requests
184
515
 
185
516
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart with regionId passes region_id in payload
186
- [2026-09-23T21:33:40.479Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
517
+ [2026-10-10T14:20:55.508Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
518
+ url: 'https://medusa.example.com/store/thor/capabilities',
519
+ totalAttempts: 1,
520
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
521
+ }
522
+
523
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart passes an explicit salesChannelId in the payload
524
+ [MSW] Error: intercepted a request without a matching request handler:
525
+
526
+ • GET https://medusa.example.com/store/thor/capabilities
527
+
528
+ If you still wish to intercept this unhandled request, please create a request handler for it.
529
+ Read more: https://mswjs.io/docs/http/intercepting-requests
530
+
531
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart passes an explicit salesChannelId in the payload
532
+ [2026-10-10T14:20:55.516Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
533
+ url: 'https://medusa.example.com/store/thor/capabilities',
534
+ totalAttempts: 1,
535
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
536
+ }
537
+
538
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart falls back to MEDUSA_SALES_CHANNEL_ID then the public var
539
+ [MSW] Error: intercepted a request without a matching request handler:
540
+
541
+ • GET https://medusa.example.com/store/thor/capabilities
542
+
543
+ If you still wish to intercept this unhandled request, please create a request handler for it.
544
+ Read more: https://mswjs.io/docs/http/intercepting-requests
545
+
546
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart falls back to MEDUSA_SALES_CHANNEL_ID then the public var
547
+ [2026-10-10T14:20:55.529Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
187
548
  url: 'https://medusa.example.com/store/thor/capabilities',
188
549
  totalAttempts: 1,
189
550
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -198,7 +559,52 @@ If you still wish to intercept this unhandled request, please create a request h
198
559
  Read more: https://mswjs.io/docs/http/intercepting-requests
199
560
 
200
561
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart returns cart when found
201
- [2026-09-23T21:33:40.483Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
562
+ [2026-10-10T14:20:55.538Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
563
+ url: 'https://medusa.example.com/store/thor/capabilities',
564
+ totalAttempts: 1,
565
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
566
+ }
567
+
568
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart transforms flat v2 cart items (no nested variant.product)
569
+ [MSW] Error: intercepted a request without a matching request handler:
570
+
571
+ • GET https://medusa.example.com/store/thor/capabilities
572
+
573
+ If you still wish to intercept this unhandled request, please create a request handler for it.
574
+ Read more: https://mswjs.io/docs/http/intercepting-requests
575
+
576
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart transforms flat v2 cart items (no nested variant.product)
577
+ [2026-10-10T14:20:55.550Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
578
+ url: 'https://medusa.example.com/store/thor/capabilities',
579
+ totalAttempts: 1,
580
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
581
+ }
582
+
583
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart does not invent a line total from unit_price × quantity
584
+ [MSW] Error: intercepted a request without a matching request handler:
585
+
586
+ • GET https://medusa.example.com/store/thor/capabilities
587
+
588
+ If you still wish to intercept this unhandled request, please create a request handler for it.
589
+ Read more: https://mswjs.io/docs/http/intercepting-requests
590
+
591
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart does not invent a line total from unit_price × quantity
592
+ [2026-10-10T14:20:55.562Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
593
+ url: 'https://medusa.example.com/store/thor/capabilities',
594
+ totalAttempts: 1,
595
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
596
+ }
597
+
598
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart carries the backend context, financial fields and item subtotal
599
+ [MSW] Error: intercepted a request without a matching request handler:
600
+
601
+ • GET https://medusa.example.com/store/thor/capabilities
602
+
603
+ If you still wish to intercept this unhandled request, please create a request handler for it.
604
+ Read more: https://mswjs.io/docs/http/intercepting-requests
605
+
606
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart carries the backend context, financial fields and item subtotal
607
+ [2026-10-10T14:20:55.576Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
202
608
  url: 'https://medusa.example.com/store/thor/capabilities',
203
609
  totalAttempts: 1,
204
610
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -213,7 +619,7 @@ If you still wish to intercept this unhandled request, please create a request h
213
619
  Read more: https://mswjs.io/docs/http/intercepting-requests
214
620
 
215
621
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart returns undefined when cart not found (404)
216
- [2026-09-23T21:33:40.489Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
622
+ [2026-10-10T14:20:55.603Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
217
623
  url: 'https://medusa.example.com/store/thor/capabilities',
218
624
  totalAttempts: 1,
219
625
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -228,14 +634,14 @@ If you still wish to intercept this unhandled request, please create a request h
228
634
  Read more: https://mswjs.io/docs/http/intercepting-requests
229
635
 
230
636
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart throws ProviderAPIError on server error
231
- [2026-09-23T21:33:40.491Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
637
+ [2026-10-10T14:20:55.614Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
232
638
  url: 'https://medusa.example.com/store/thor/capabilities',
233
639
  totalAttempts: 1,
234
640
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
235
641
  }
236
642
 
237
643
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart throws ProviderAPIError on server error
238
- [2026-09-23T21:33:40.492Z] [@thorprovider/adapters:MedusaProvider] ERROR: Failed to create cart { error: 'Internal Server Error' }
644
+ [2026-10-10T14:20:55.619Z] [@thorprovider/adapters:MedusaProvider] ERROR: Failed to create cart { error: 'Internal Server Error' }
239
645
 
240
646
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Regions > getRegions returns array of regions
241
647
  [MSW] Error: intercepted a request without a matching request handler:
@@ -246,7 +652,7 @@ If you still wish to intercept this unhandled request, please create a request h
246
652
  Read more: https://mswjs.io/docs/http/intercepting-requests
247
653
 
248
654
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Regions > getRegions returns array of regions
249
- [2026-09-23T21:33:40.494Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
655
+ [2026-10-10T14:20:55.637Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
250
656
  url: 'https://medusa.example.com/store/thor/capabilities',
251
657
  totalAttempts: 1,
252
658
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -261,7 +667,7 @@ If you still wish to intercept this unhandled request, please create a request h
261
667
  Read more: https://mswjs.io/docs/http/intercepting-requests
262
668
 
263
669
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Regions > getRegions returns empty array when no regions
264
- [2026-09-23T21:33:40.496Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
670
+ [2026-10-10T14:20:55.662Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
265
671
  url: 'https://medusa.example.com/store/thor/capabilities',
266
672
  totalAttempts: 1,
267
673
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -276,7 +682,7 @@ If you still wish to intercept this unhandled request, please create a request h
276
682
  Read more: https://mswjs.io/docs/http/intercepting-requests
277
683
 
278
684
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Shipping > getShippingMethods returns available methods
279
- [2026-09-23T21:33:40.499Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
685
+ [2026-10-10T14:20:55.686Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
280
686
  url: 'https://medusa.example.com/store/thor/capabilities',
281
687
  totalAttempts: 1,
282
688
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -291,12 +697,15 @@ If you still wish to intercept this unhandled request, please create a request h
291
697
  Read more: https://mswjs.io/docs/http/intercepting-requests
292
698
 
293
699
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Shipping > getShippingMethods returns empty array when none available
294
- [2026-09-23T21:33:40.501Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
700
+ [2026-10-10T14:20:55.711Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
295
701
  url: 'https://medusa.example.com/store/thor/capabilities',
296
702
  totalAttempts: 1,
297
703
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
298
704
  }
299
705
 
706
+ ✓ src/providers/medusa/catalog-facet-support.test.ts (17 tests) 2650ms
707
+ ✓ MedusaProvider.getCatalogFacetSupport — optional endpoint absent > holds price/inStock/attr and offers only the basic facets, proven by /store/products 382ms
708
+ ✓ real Medusa + Meilisearch: advanced facets reflect backend truth > price narrows the result set and echoes price_range; inStock offered; attributes held 1741ms
300
709
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment > getPaymentMethods returns payment providers
301
710
  [MSW] Error: intercepted a request without a matching request handler:
302
711
 
@@ -306,7 +715,7 @@ If you still wish to intercept this unhandled request, please create a request h
306
715
  Read more: https://mswjs.io/docs/http/intercepting-requests
307
716
 
308
717
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment > getPaymentMethods returns payment providers
309
- [2026-09-23T21:33:40.504Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
718
+ [2026-10-10T14:20:55.741Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
310
719
  url: 'https://medusa.example.com/store/thor/capabilities',
311
720
  totalAttempts: 1,
312
721
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
@@ -321,17 +730,17 @@ If you still wish to intercept this unhandled request, please create a request h
321
730
  Read more: https://mswjs.io/docs/http/intercepting-requests
322
731
 
323
732
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > getProducts throws when backend returns 503
324
- [2026-09-23T21:33:40.506Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
733
+ [2026-10-10T14:20:55.784Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
325
734
  url: 'https://medusa.example.com/store/thor/capabilities',
326
735
  totalAttempts: 1,
327
736
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
328
737
  }
329
738
 
330
739
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > getProducts throws when backend returns 503
331
- [2026-09-23T21:33:42.614Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProducts failed after all retries { totalAttempts: 4, error: 'Service Unavailable' }
740
+ [2026-10-10T14:20:57.903Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProducts failed after all retries { totalAttempts: 4, error: 'Service Unavailable' }
332
741
 
333
742
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > getProducts throws when backend returns 503
334
- [2026-09-23T21:33:42.617Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProducts error details {
743
+ [2026-10-10T14:20:57.907Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProducts error details {
335
744
  message: 'Service Unavailable',
336
745
  status: 503,
337
746
  type: undefined,
@@ -352,21 +761,137 @@ If you still wish to intercept this unhandled request, please create a request h
352
761
  Read more: https://mswjs.io/docs/http/intercepting-requests
353
762
 
354
763
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > createCart throws when backend returns 500
355
- [2026-09-23T21:33:42.623Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
764
+ [2026-10-10T14:20:57.912Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
356
765
  url: 'https://medusa.example.com/store/thor/capabilities',
357
766
  totalAttempts: 1,
358
767
  error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
359
768
  }
360
769
 
361
770
  stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > createCart throws when backend returns 500
362
- [2026-09-23T21:33:42.623Z] [@thorprovider/adapters:MedusaProvider] ERROR: Failed to create cart { error: 'Internal Server Error' }
771
+ [2026-10-10T14:20:57.912Z] [@thorprovider/adapters:MedusaProvider] ERROR: Failed to create cart { error: 'Internal Server Error' }
772
+
773
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Completion > completeCart requests explicit order item fields and maps populated items
774
+ [MSW] Error: intercepted a request without a matching request handler:
775
+
776
+ • GET https://medusa.example.com/store/thor/capabilities
777
+
778
+ If you still wish to intercept this unhandled request, please create a request handler for it.
779
+ Read more: https://mswjs.io/docs/http/intercepting-requests
780
+
781
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Completion > completeCart requests explicit order item fields and maps populated items
782
+ [2026-10-10T14:20:57.917Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
783
+ url: 'https://medusa.example.com/store/thor/capabilities',
784
+ totalAttempts: 1,
785
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
786
+ }
787
+
788
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Completion > completeCart preserves a cart-with-error discriminator
789
+ [MSW] Error: intercepted a request without a matching request handler:
790
+
791
+ • GET https://medusa.example.com/store/thor/capabilities
792
+
793
+ If you still wish to intercept this unhandled request, please create a request handler for it.
794
+ Read more: https://mswjs.io/docs/http/intercepting-requests
795
+
796
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Completion > completeCart preserves a cart-with-error discriminator
797
+ [2026-10-10T14:20:57.923Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
798
+ url: 'https://medusa.example.com/store/thor/capabilities',
799
+ totalAttempts: 1,
800
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
801
+ }
802
+
803
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Completion > completeCart returns unresolved and does not retry a failed mutation
804
+ [MSW] Error: intercepted a request without a matching request handler:
805
+
806
+ • GET https://medusa.example.com/store/thor/capabilities
807
+
808
+ If you still wish to intercept this unhandled request, please create a request handler for it.
809
+ Read more: https://mswjs.io/docs/http/intercepting-requests
810
+
811
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Completion > completeCart returns unresolved and does not retry a failed mutation
812
+ [2026-10-10T14:20:57.928Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
813
+ url: 'https://medusa.example.com/store/thor/capabilities',
814
+ totalAttempts: 1,
815
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
816
+ }
817
+
818
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Completion > completeCart returns unresolved and does not retry a failed mutation
819
+ [2026-10-10T14:20:57.929Z] [@thorprovider/adapters:MedusaProvider] ERROR: Cart completion failed (unresolved, not retried) { cartId: 'cart_01', status: 504, message: 'Gateway Timeout' }
820
+
821
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment session compatibility > reuses a compatible session without creating a new one
822
+ [MSW] Error: intercepted a request without a matching request handler:
823
+
824
+ • GET https://medusa.example.com/store/thor/capabilities
825
+
826
+ If you still wish to intercept this unhandled request, please create a request handler for it.
827
+ Read more: https://mswjs.io/docs/http/intercepting-requests
828
+
829
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment session compatibility > reuses a compatible session without creating a new one
830
+ [2026-10-10T14:20:57.936Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
831
+ url: 'https://medusa.example.com/store/thor/capabilities',
832
+ totalAttempts: 1,
833
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
834
+ }
835
+
836
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment session compatibility > replaces a session whose provider/amount is incompatible
837
+ [MSW] Error: intercepted a request without a matching request handler:
838
+
839
+ • GET https://medusa.example.com/store/thor/capabilities
840
+
841
+ If you still wish to intercept this unhandled request, please create a request handler for it.
842
+ Read more: https://mswjs.io/docs/http/intercepting-requests
843
+
844
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment session compatibility > replaces a session whose provider/amount is incompatible
845
+ [2026-10-10T14:20:57.941Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
846
+ url: 'https://medusa.example.com/store/thor/capabilities',
847
+ totalAttempts: 1,
848
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
849
+ }
850
+
851
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment session compatibility > rejects payment before a shipping method is selected
852
+ [MSW] Error: intercepted a request without a matching request handler:
853
+
854
+ • GET https://medusa.example.com/store/thor/capabilities
855
+
856
+ If you still wish to intercept this unhandled request, please create a request handler for it.
857
+ Read more: https://mswjs.io/docs/http/intercepting-requests
858
+
859
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment session compatibility > rejects payment before a shipping method is selected
860
+ [2026-10-10T14:20:57.947Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
861
+ url: 'https://medusa.example.com/store/thor/capabilities',
862
+ totalAttempts: 1,
863
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
864
+ }
865
+
866
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment session compatibility > rejects payment before a shipping method is selected
867
+ [2026-10-10T14:20:57.948Z] [@thorprovider/adapters:MedusaProvider] ERROR: Failed to initiate payment session {
868
+ cartId: 'cart_01',
869
+ providerId: 'pp_system_default',
870
+ errorMessage: 'Shipping method is required before initiating payment session',
871
+ errorStatus: 400
872
+ }
873
+
874
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Shipping truthfulness > does not fabricate a zero amount or an "N/A" ETA
875
+ [MSW] Error: intercepted a request without a matching request handler:
876
+
877
+ • GET https://medusa.example.com/store/thor/capabilities
878
+
879
+ If you still wish to intercept this unhandled request, please create a request handler for it.
880
+ Read more: https://mswjs.io/docs/http/intercepting-requests
881
+
882
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Shipping truthfulness > does not fabricate a zero amount or an "N/A" ETA
883
+ [2026-10-10T14:20:57.955Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
884
+ url: 'https://medusa.example.com/store/thor/capabilities',
885
+ totalAttempts: 1,
886
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
887
+ }
363
888
 
364
- ✓ src/providers/medusa/index.test.ts (17 tests) 4412ms
365
- ✓ MedusaProvider — Products > getProduct throws ProviderAPIError on 503 2127ms
366
- ✓ MedusaProvider — Error propagation > getProducts throws when backend returns 503 2114ms
889
+ ✓ src/providers/medusa/index.test.ts (35 tests) 4912ms
890
+ ✓ MedusaProvider — Products > getProduct throws ProviderAPIError on 503 2148ms
891
+ ✓ MedusaProvider — Error propagation > getProducts throws when backend returns 503 2148ms
367
892
 
368
- Test Files 6 passed | 2 skipped (8)
369
- Tests 52 passed | 2 skipped (54)
370
- Start at 17:33:34
371
- Duration 8.33s (transform 3.59s, setup 7.42s, collect 8.80s, tests 5.17s, environment 13ms, prepare 2.89s)
893
+ Test Files 14 passed | 2 skipped (16)
894
+ Tests 164 passed | 4 skipped (168)
895
+ Start at 10:20:45
896
+ Duration 12.47s (transform 6.98s, setup 8.87s, collect 37.84s, tests 12.00s, environment 16ms, prepare 8.85s)
372
897