@thorprovider/adapters 5.0.9 → 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.
@@ -0,0 +1,897 @@
1
+
2
+ RUN v3.2.4 /home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters
3
+
4
+ stderr | src/providers/medusa/auth.test.ts > MedusaAuthProvider > throws ProviderAPIError with login code on auth failure
5
+ [2026-10-10T14:20:48.966Z] [@thorprovider/adapters:MedusaAuthProvider] ERROR: Login failed Error: bad credentials
6
+ at /home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/src/providers/medusa/auth.test.ts:75:48
7
+ at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:155:11
8
+ at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:752:26
9
+ at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:1897:20
10
+ at new Promise (<anonymous>)
11
+ at runWithTimeout (file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:1863:10)
12
+ at runTest (file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:1574:12)
13
+  at processTicksAndRejections (node:internal/process/task_queues:103:5)
14
+ at runSuite (file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:1729:8)
15
+ at runSuite (file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:1729:8)
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
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
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
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
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
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
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
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
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
30
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/fulfillment.js" points to missing source files
31
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/fulfillment-provider.js" points to missing source files
32
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/fulfillment-set.js" points to missing source files
33
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/inventory-item.js" points to missing source files
34
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/invite.js" points to missing source files
35
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/notification.js" points to missing source files
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
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
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
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
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
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
47
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/price-preference.js" points to missing source files
48
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/product.js" points to missing source files
49
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/client.js" points to missing source files
50
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/product-category.js" points to missing source files
51
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/product-collection.js" points to missing source files
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
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
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
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
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
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
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/reservation.js" points to missing source files
60
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/return.js" points to missing source files
61
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/return-reason.js" points to missing source files
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
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
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
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
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
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
69
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/tax-rate.js" points to missing source files
70
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/tax-region.js" points to missing source files
71
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/upload.js" points to missing source files
72
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/user.js" points to missing source files
73
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/views.js" points to missing source files
74
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/workflow-execution.js" points to missing source files
75
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/shipping-option-type.js" points to missing source files
76
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/locale.js" points to missing source files
77
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/translation.js" points to missing source files
78
+ Sourcemap for "/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/admin/rbac-role.js" points to missing source files
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
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
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
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
+
98
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct returns transformed product when found
99
+ [MSW] Error: intercepted a request without a matching request handler:
100
+
101
+ • GET https://medusa.example.com/store/thor/capabilities
102
+
103
+ If you still wish to intercept this unhandled request, please create a request handler for it.
104
+ Read more: https://mswjs.io/docs/http/intercepting-requests
105
+
106
+ ↓ src/providers/medusa/live-smoke.test.ts (3 tests | 3 skipped)
107
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct returns transformed product when found
108
+ [2026-10-10T14:20:53.156Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
109
+ url: 'https://medusa.example.com/store/thor/capabilities',
110
+ totalAttempts: 1,
111
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
112
+ }
113
+
114
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct returns undefined when not found
115
+ [MSW] Error: intercepted a request without a matching request handler:
116
+
117
+ • GET https://medusa.example.com/store/thor/capabilities
118
+
119
+ If you still wish to intercept this unhandled request, please create a request handler for it.
120
+ Read more: https://mswjs.io/docs/http/intercepting-requests
121
+
122
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct returns undefined when not found
123
+ [2026-10-10T14:20:53.175Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
124
+ url: 'https://medusa.example.com/store/thor/capabilities',
125
+ totalAttempts: 1,
126
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
127
+ }
128
+
129
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct throws ProviderAPIError on 503
130
+ [MSW] Error: intercepted a request without a matching request handler:
131
+
132
+ • GET https://medusa.example.com/store/thor/capabilities
133
+
134
+ If you still wish to intercept this unhandled request, please create a request handler for it.
135
+ Read more: https://mswjs.io/docs/http/intercepting-requests
136
+
137
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct throws ProviderAPIError on 503
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 {
275
+ url: 'https://medusa.example.com/store/thor/capabilities',
276
+ totalAttempts: 1,
277
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
278
+ }
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
+
365
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct throws ProviderAPIError on 503
366
+ [2026-10-10T14:20:55.317Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProduct failed after all retries {
367
+ handle: 'any-handle',
368
+ regionId: undefined,
369
+ totalAttempts: 4,
370
+ error: 'Service unavailable'
371
+ }
372
+
373
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProducts returns array of transformed products
374
+ [MSW] Error: intercepted a request without a matching request handler:
375
+
376
+ • GET https://medusa.example.com/store/thor/capabilities
377
+
378
+ If you still wish to intercept this unhandled request, please create a request handler for it.
379
+ Read more: https://mswjs.io/docs/http/intercepting-requests
380
+
381
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProducts returns array of transformed products
382
+ [2026-10-10T14:20:55.358Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
383
+ url: 'https://medusa.example.com/store/thor/capabilities',
384
+ totalAttempts: 1,
385
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
386
+ }
387
+
388
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProducts returns empty array when backend returns none
389
+ [MSW] Error: intercepted a request without a matching request handler:
390
+
391
+ • GET https://medusa.example.com/store/thor/capabilities
392
+
393
+ If you still wish to intercept this unhandled request, please create a request handler for it.
394
+ Read more: https://mswjs.io/docs/http/intercepting-requests
395
+
396
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProducts returns empty array when backend returns none
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 {
488
+ url: 'https://medusa.example.com/store/thor/capabilities',
489
+ totalAttempts: 1,
490
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
491
+ }
492
+
493
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart returns a cart with an id
494
+ [MSW] Error: intercepted a request without a matching request handler:
495
+
496
+ • GET https://medusa.example.com/store/thor/capabilities
497
+
498
+ If you still wish to intercept this unhandled request, please create a request handler for it.
499
+ Read more: https://mswjs.io/docs/http/intercepting-requests
500
+
501
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart returns a cart with an id
502
+ [2026-10-10T14:20:55.498Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
503
+ url: 'https://medusa.example.com/store/thor/capabilities',
504
+ totalAttempts: 1,
505
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
506
+ }
507
+
508
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart with regionId passes region_id in payload
509
+ [MSW] Error: intercepted a request without a matching request handler:
510
+
511
+ • GET https://medusa.example.com/store/thor/capabilities
512
+
513
+ If you still wish to intercept this unhandled request, please create a request handler for it.
514
+ Read more: https://mswjs.io/docs/http/intercepting-requests
515
+
516
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart with regionId passes region_id in payload
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 {
548
+ url: 'https://medusa.example.com/store/thor/capabilities',
549
+ totalAttempts: 1,
550
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
551
+ }
552
+
553
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart returns cart when found
554
+ [MSW] Error: intercepted a request without a matching request handler:
555
+
556
+ • GET https://medusa.example.com/store/thor/capabilities
557
+
558
+ If you still wish to intercept this unhandled request, please create a request handler for it.
559
+ Read more: https://mswjs.io/docs/http/intercepting-requests
560
+
561
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart returns cart when found
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 {
608
+ url: 'https://medusa.example.com/store/thor/capabilities',
609
+ totalAttempts: 1,
610
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
611
+ }
612
+
613
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart returns undefined when cart not found (404)
614
+ [MSW] Error: intercepted a request without a matching request handler:
615
+
616
+ • GET https://medusa.example.com/store/thor/capabilities
617
+
618
+ If you still wish to intercept this unhandled request, please create a request handler for it.
619
+ Read more: https://mswjs.io/docs/http/intercepting-requests
620
+
621
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > getCart returns undefined when cart not found (404)
622
+ [2026-10-10T14:20:55.603Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
623
+ url: 'https://medusa.example.com/store/thor/capabilities',
624
+ totalAttempts: 1,
625
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
626
+ }
627
+
628
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart throws ProviderAPIError on server error
629
+ [MSW] Error: intercepted a request without a matching request handler:
630
+
631
+ • GET https://medusa.example.com/store/thor/capabilities
632
+
633
+ If you still wish to intercept this unhandled request, please create a request handler for it.
634
+ Read more: https://mswjs.io/docs/http/intercepting-requests
635
+
636
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart throws ProviderAPIError on server error
637
+ [2026-10-10T14:20:55.614Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
638
+ url: 'https://medusa.example.com/store/thor/capabilities',
639
+ totalAttempts: 1,
640
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
641
+ }
642
+
643
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart throws ProviderAPIError on server error
644
+ [2026-10-10T14:20:55.619Z] [@thorprovider/adapters:MedusaProvider] ERROR: Failed to create cart { error: 'Internal Server Error' }
645
+
646
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Regions > getRegions returns array of regions
647
+ [MSW] Error: intercepted a request without a matching request handler:
648
+
649
+ • GET https://medusa.example.com/store/thor/capabilities
650
+
651
+ If you still wish to intercept this unhandled request, please create a request handler for it.
652
+ Read more: https://mswjs.io/docs/http/intercepting-requests
653
+
654
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Regions > getRegions returns array of regions
655
+ [2026-10-10T14:20:55.637Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
656
+ url: 'https://medusa.example.com/store/thor/capabilities',
657
+ totalAttempts: 1,
658
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
659
+ }
660
+
661
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Regions > getRegions returns empty array when no regions
662
+ [MSW] Error: intercepted a request without a matching request handler:
663
+
664
+ • GET https://medusa.example.com/store/thor/capabilities
665
+
666
+ If you still wish to intercept this unhandled request, please create a request handler for it.
667
+ Read more: https://mswjs.io/docs/http/intercepting-requests
668
+
669
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Regions > getRegions returns empty array when no regions
670
+ [2026-10-10T14:20:55.662Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
671
+ url: 'https://medusa.example.com/store/thor/capabilities',
672
+ totalAttempts: 1,
673
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
674
+ }
675
+
676
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Shipping > getShippingMethods returns available methods
677
+ [MSW] Error: intercepted a request without a matching request handler:
678
+
679
+ • GET https://medusa.example.com/store/thor/capabilities
680
+
681
+ If you still wish to intercept this unhandled request, please create a request handler for it.
682
+ Read more: https://mswjs.io/docs/http/intercepting-requests
683
+
684
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Shipping > getShippingMethods returns available methods
685
+ [2026-10-10T14:20:55.686Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
686
+ url: 'https://medusa.example.com/store/thor/capabilities',
687
+ totalAttempts: 1,
688
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
689
+ }
690
+
691
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Shipping > getShippingMethods returns empty array when none available
692
+ [MSW] Error: intercepted a request without a matching request handler:
693
+
694
+ • GET https://medusa.example.com/store/thor/capabilities
695
+
696
+ If you still wish to intercept this unhandled request, please create a request handler for it.
697
+ Read more: https://mswjs.io/docs/http/intercepting-requests
698
+
699
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Shipping > getShippingMethods returns empty array when none available
700
+ [2026-10-10T14:20:55.711Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
701
+ url: 'https://medusa.example.com/store/thor/capabilities',
702
+ totalAttempts: 1,
703
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
704
+ }
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
709
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment > getPaymentMethods returns payment providers
710
+ [MSW] Error: intercepted a request without a matching request handler:
711
+
712
+ • GET https://medusa.example.com/store/thor/capabilities
713
+
714
+ If you still wish to intercept this unhandled request, please create a request handler for it.
715
+ Read more: https://mswjs.io/docs/http/intercepting-requests
716
+
717
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Payment > getPaymentMethods returns payment providers
718
+ [2026-10-10T14:20:55.741Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
719
+ url: 'https://medusa.example.com/store/thor/capabilities',
720
+ totalAttempts: 1,
721
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
722
+ }
723
+
724
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > getProducts throws when backend returns 503
725
+ [MSW] Error: intercepted a request without a matching request handler:
726
+
727
+ • GET https://medusa.example.com/store/thor/capabilities
728
+
729
+ If you still wish to intercept this unhandled request, please create a request handler for it.
730
+ Read more: https://mswjs.io/docs/http/intercepting-requests
731
+
732
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > getProducts throws when backend returns 503
733
+ [2026-10-10T14:20:55.784Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
734
+ url: 'https://medusa.example.com/store/thor/capabilities',
735
+ totalAttempts: 1,
736
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
737
+ }
738
+
739
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > getProducts throws when backend returns 503
740
+ [2026-10-10T14:20:57.903Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProducts failed after all retries { totalAttempts: 4, error: 'Service Unavailable' }
741
+
742
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > getProducts throws when backend returns 503
743
+ [2026-10-10T14:20:57.907Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProducts error details {
744
+ message: 'Service Unavailable',
745
+ status: 503,
746
+ type: undefined,
747
+ code: undefined,
748
+ stack: 'Error: Service Unavailable\n' +
749
+ ' at /home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/src/client.ts:91:11\n' +
750
+ ' at Generator.next (<anonymous>)\n' +
751
+ ' at fulfilled (/home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@medusajs/js-sdk/dist/esm/client.js:10:58)',
752
+ fullError: '{\n "statusText": "Service Unavailable",\n "status": 503\n}'
753
+ }
754
+
755
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > createCart throws when backend returns 500
756
+ [MSW] Error: intercepted a request without a matching request handler:
757
+
758
+ • GET https://medusa.example.com/store/thor/capabilities
759
+
760
+ If you still wish to intercept this unhandled request, please create a request handler for it.
761
+ Read more: https://mswjs.io/docs/http/intercepting-requests
762
+
763
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > createCart throws when backend returns 500
764
+ [2026-10-10T14:20:57.912Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
765
+ url: 'https://medusa.example.com/store/thor/capabilities',
766
+ totalAttempts: 1,
767
+ error: '[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'
768
+ }
769
+
770
+ stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > createCart throws when backend returns 500
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
+ }
888
+
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
892
+
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)
897
+