@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.
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-test.log +564 -39
- package/AGENTS.md +1 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.mts +348 -11
- package/dist/index.d.ts +348 -11
- package/dist/index.js +1393 -496
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1386 -498
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
- package/src/core/errors.ts +31 -0
- package/src/factory/index.ts +16 -6
- package/src/factory/provider-types.test.ts +32 -0
- package/src/factory/provider-types.ts +176 -0
- package/src/index.ts +6 -4
- package/src/providers/index.ts +1 -1
- package/src/providers/medusa/available-filters.test.ts +280 -0
- package/src/providers/medusa/catalog-facet-support.test.ts +715 -0
- package/src/providers/medusa/catalog-query.test.ts +422 -0
- package/src/providers/medusa/catalog-sort.test.ts +175 -0
- package/src/providers/medusa/index.test.ts +480 -0
- package/src/providers/medusa/index.ts +1490 -518
- package/src/providers/medusa/live-smoke.test.ts +68 -0
- package/src/providers/medusa/transforms.test.ts +177 -0
- package/src/providers/medusa/transforms.ts +145 -66
- package/src/providers/mock/catalog-query.test.ts +355 -0
- package/src/providers/mock/index.test.ts +47 -0
- package/src/providers/mock/index.ts +43 -1
- package/src/providers/mock/mock.ts +324 -2
- package/src/types/completion.ts +57 -0
- package/src/types/index.ts +7 -0
package/.turbo/turbo-test.log
CHANGED
|
@@ -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-
|
|
5
|
+
[2026-10-10T14:20:48.966Z] [@thorprovider/adapters:MedusaAuthProvider] ERROR: Login failed Error: bad credentials
|
|
10
6
|
at [90m/home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/[39msrc/providers/medusa/auth.test.ts:75:48
|
|
11
7
|
at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/[4m@vitest/runner[24m/dist/chunk-hooks.js:155:11
|
|
12
8
|
at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/[4m@vitest/runner[24m/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/[4m@vitest/runner[24m/dist/chunk-hooks.js:1729:8)
|
|
19
15
|
at runSuite (file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/[4m@vitest/runner[24m/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/
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
94
|
+
totalAttempts: [33m1[39m,
|
|
95
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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-
|
|
108
|
+
[2026-10-10T14:20:53.156Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
89
109
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
90
110
|
totalAttempts: [33m1[39m,
|
|
91
111
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
123
|
+
[2026-10-10T14:20:53.175Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
104
124
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
105
125
|
totalAttempts: [33m1[39m,
|
|
106
126
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
138
|
+
[2026-10-10T14:20:53.194Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
139
|
+
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
140
|
+
totalAttempts: [33m1[39m,
|
|
141
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
156
|
+
totalAttempts: [33m1[39m,
|
|
157
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
171
|
+
totalAttempts: [33m1[39m,
|
|
172
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
186
|
+
totalAttempts: [33m1[39m,
|
|
187
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
201
|
+
totalAttempts: [33m1[39m,
|
|
202
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
216
|
+
totalAttempts: [33m1[39m,
|
|
217
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
231
|
+
totalAttempts: [33m1[39m,
|
|
232
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
246
|
+
totalAttempts: [33m1[39m,
|
|
247
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
261
|
+
totalAttempts: [33m1[39m,
|
|
262
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
120
276
|
totalAttempts: [33m1[39m,
|
|
121
277
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
291
|
+
totalAttempts: [33m1[39m,
|
|
292
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
306
|
+
totalAttempts: [33m1[39m,
|
|
307
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
321
|
+
totalAttempts: [33m1[39m,
|
|
322
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'Search API returned 404: Not Found'[39m,
|
|
333
|
+
stack: [32m'Error: Search API returned 404: Not Found\n'[39m +
|
|
334
|
+
[32m' at MedusaProvider.searchProductsAdvanced (/home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/src/providers/medusa/index.ts:1700:15)\n'[39m +
|
|
335
|
+
[32m' at processTicksAndRejections (node:internal/process/task_queues:103:5)\n'[39m +
|
|
336
|
+
[32m' at /home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/src/providers/medusa/catalog-facet-support.test.ts:524:5\n'[39m +
|
|
337
|
+
[32m' at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:752:20'[39m
|
|
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: [32m'Search API returned 404: Not Found'[39m,
|
|
343
|
+
stack: [32m'Error: Search API returned 404: Not Found\n'[39m +
|
|
344
|
+
[32m' at MedusaProvider.searchProductsAdvanced (/home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/src/providers/medusa/index.ts:1700:15)\n'[39m +
|
|
345
|
+
[32m' at processTicksAndRejections (node:internal/process/task_queues:103:5)\n'[39m +
|
|
346
|
+
[32m' at /home/nelson/dev/active/thorprovider/repos/thorcommerce/packages/adapters/src/providers/medusa/catalog-facet-support.test.ts:533:20\n'[39m +
|
|
347
|
+
[32m' at file:///home/nelson/dev/active/thorprovider/repos/thorcommerce/node_modules/@vitest/runner/dist/chunk-hooks.js:752:20'[39m
|
|
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: [32m'http://localhost:9000/store/thor/capabilities'[39m,
|
|
361
|
+
totalAttempts: [33m1[39m,
|
|
362
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
363
|
+
}
|
|
364
|
+
|
|
124
365
|
stderr | src/providers/medusa/index.test.ts > MedusaProvider — Products > getProduct throws ProviderAPIError on 503
|
|
125
|
-
[2026-
|
|
366
|
+
[2026-10-10T14:20:55.317Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProduct failed after all retries {
|
|
126
367
|
handle: [32m'any-handle'[39m,
|
|
127
368
|
regionId: [90mundefined[39m,
|
|
128
369
|
totalAttempts: [33m4[39m,
|
|
@@ -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-
|
|
382
|
+
[2026-10-10T14:20:55.358Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
142
383
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
143
384
|
totalAttempts: [33m1[39m,
|
|
144
385
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
397
|
+
[2026-10-10T14:20:55.428Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
398
|
+
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
399
|
+
totalAttempts: [33m1[39m,
|
|
400
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
414
|
+
totalAttempts: [33m1[39m,
|
|
415
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
429
|
+
totalAttempts: [33m1[39m,
|
|
430
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
444
|
+
totalAttempts: [33m1[39m,
|
|
445
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
459
|
+
totalAttempts: [33m1[39m,
|
|
460
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
474
|
+
totalAttempts: [33m1[39m,
|
|
475
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
158
489
|
totalAttempts: [33m1[39m,
|
|
159
490
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
502
|
+
[2026-10-10T14:20:55.498Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
172
503
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
173
504
|
totalAttempts: [33m1[39m,
|
|
174
505
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
517
|
+
[2026-10-10T14:20:55.508Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
518
|
+
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
519
|
+
totalAttempts: [33m1[39m,
|
|
520
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
534
|
+
totalAttempts: [33m1[39m,
|
|
535
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
188
549
|
totalAttempts: [33m1[39m,
|
|
189
550
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
562
|
+
[2026-10-10T14:20:55.538Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
563
|
+
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
564
|
+
totalAttempts: [33m1[39m,
|
|
565
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
579
|
+
totalAttempts: [33m1[39m,
|
|
580
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
594
|
+
totalAttempts: [33m1[39m,
|
|
595
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
203
609
|
totalAttempts: [33m1[39m,
|
|
204
610
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
622
|
+
[2026-10-10T14:20:55.603Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
217
623
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
218
624
|
totalAttempts: [33m1[39m,
|
|
219
625
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
637
|
+
[2026-10-10T14:20:55.614Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
232
638
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
233
639
|
totalAttempts: [33m1[39m,
|
|
234
640
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
235
641
|
}
|
|
236
642
|
|
|
237
643
|
stderr | src/providers/medusa/index.test.ts > MedusaProvider — Cart > createCart throws ProviderAPIError on server error
|
|
238
|
-
[2026-
|
|
644
|
+
[2026-10-10T14:20:55.619Z] [@thorprovider/adapters:MedusaProvider] ERROR: Failed to create cart { error: [32m'Internal Server Error'[39m }
|
|
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-
|
|
655
|
+
[2026-10-10T14:20:55.637Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
250
656
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
251
657
|
totalAttempts: [33m1[39m,
|
|
252
658
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
670
|
+
[2026-10-10T14:20:55.662Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
265
671
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
266
672
|
totalAttempts: [33m1[39m,
|
|
267
673
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
685
|
+
[2026-10-10T14:20:55.686Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
280
686
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
281
687
|
totalAttempts: [33m1[39m,
|
|
282
688
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
700
|
+
[2026-10-10T14:20:55.711Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
295
701
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
296
702
|
totalAttempts: [33m1[39m,
|
|
297
703
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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-
|
|
718
|
+
[2026-10-10T14:20:55.741Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
310
719
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
311
720
|
totalAttempts: [33m1[39m,
|
|
312
721
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
@@ -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-
|
|
733
|
+
[2026-10-10T14:20:55.784Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
325
734
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
326
735
|
totalAttempts: [33m1[39m,
|
|
327
736
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
328
737
|
}
|
|
329
738
|
|
|
330
739
|
stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > getProducts throws when backend returns 503
|
|
331
|
-
[2026-
|
|
740
|
+
[2026-10-10T14:20:57.903Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProducts failed after all retries { totalAttempts: [33m4[39m, error: [32m'Service Unavailable'[39m }
|
|
332
741
|
|
|
333
742
|
stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > getProducts throws when backend returns 503
|
|
334
|
-
[2026-
|
|
743
|
+
[2026-10-10T14:20:57.907Z] [@thorprovider/adapters:MedusaProvider] ERROR: getProducts error details {
|
|
335
744
|
message: [32m'Service Unavailable'[39m,
|
|
336
745
|
status: [33m503[39m,
|
|
337
746
|
type: [90mundefined[39m,
|
|
@@ -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-
|
|
764
|
+
[2026-10-10T14:20:57.912Z] [@thorprovider/adapters:FetchUtils] ERROR: Fetch failed after all retries {
|
|
356
765
|
url: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
357
766
|
totalAttempts: [33m1[39m,
|
|
358
767
|
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
359
768
|
}
|
|
360
769
|
|
|
361
770
|
stderr | src/providers/medusa/index.test.ts > MedusaProvider — Error propagation > createCart throws when backend returns 500
|
|
362
|
-
[2026-
|
|
771
|
+
[2026-10-10T14:20:57.912Z] [@thorprovider/adapters:MedusaProvider] ERROR: Failed to create cart { error: [32m'Internal Server Error'[39m }
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
784
|
+
totalAttempts: [33m1[39m,
|
|
785
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
799
|
+
totalAttempts: [33m1[39m,
|
|
800
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
814
|
+
totalAttempts: [33m1[39m,
|
|
815
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'cart_01'[39m, status: [33m504[39m, message: [32m'Gateway Timeout'[39m }
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
832
|
+
totalAttempts: [33m1[39m,
|
|
833
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
847
|
+
totalAttempts: [33m1[39m,
|
|
848
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
862
|
+
totalAttempts: [33m1[39m,
|
|
863
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
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: [32m'cart_01'[39m,
|
|
869
|
+
providerId: [32m'pp_system_default'[39m,
|
|
870
|
+
errorMessage: [32m'Shipping method is required before initiating payment session'[39m,
|
|
871
|
+
errorStatus: [33m400[39m
|
|
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: [32m'https://medusa.example.com/store/thor/capabilities'[39m,
|
|
885
|
+
totalAttempts: [33m1[39m,
|
|
886
|
+
error: [32m'[MSW] Cannot bypass a request when using the "error" strategy for the "onUnhandledRequest" option.'[39m
|
|
887
|
+
}
|
|
363
888
|
|
|
364
|
-
✓ src/providers/medusa/index.test.ts (
|
|
365
|
-
✓ MedusaProvider — Products > getProduct throws ProviderAPIError on 503
|
|
366
|
-
✓ MedusaProvider — Error propagation > getProducts throws when backend returns 503
|
|
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
|
|
369
|
-
Tests
|
|
370
|
-
Start at
|
|
371
|
-
Duration
|
|
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
|
|