@faststore/core 4.10.1-dev.5 → 4.10.1-dev.7

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.
Files changed (63) hide show
  1. package/.turbo/turbo-generate.log +3 -3
  2. package/.turbo/turbo-test.log +169 -157
  3. package/@generated/graphql.ts +1 -0
  4. package/@generated/schema.graphql +1 -1
  5. package/CHANGELOG.md +39 -0
  6. package/package.json +6 -6
  7. package/src/components/account/Drawer/OrganizationDrawer/OrganizationDrawer.tsx +3 -3
  8. package/src/components/account/Drawer/OrganizationDrawer/OrganizationDrawerBody.tsx +5 -7
  9. package/src/components/account/Drawer/OrganizationSignInButton/OrganizationSignInButton.tsx +4 -1
  10. package/src/components/account/Layout/Layout.tsx +5 -7
  11. package/src/components/account/Menu/Menu.tsx +1 -1
  12. package/src/components/navigation/Navbar/Navbar.tsx +3 -3
  13. package/src/components/navigation/Navbar/NavbarAccountArea.tsx +5 -5
  14. package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +3 -3
  15. package/src/experimental/myAccountCmsServerSideProps.ts +3 -3
  16. package/src/experimental/myAccountServerSideProps.ts +4 -4
  17. package/src/pages/[slug]/p.tsx +11 -2
  18. package/src/pages/api/fs/logout.ts +18 -10
  19. package/src/pages/api/fs/switch-contract.ts +170 -21
  20. package/src/pages/api/graphql.ts +4 -3
  21. package/src/pages/pvt/account/cards/index.tsx +5 -5
  22. package/src/pages/pvt/account/orders/[id].tsx +5 -5
  23. package/src/pages/pvt/account/orders/index.tsx +5 -5
  24. package/src/pages/pvt/account/profile.tsx +5 -5
  25. package/src/pages/pvt/account/quotes/index.tsx +5 -5
  26. package/src/pages/pvt/account/security.tsx +5 -5
  27. package/src/pages/pvt/account/user-details.tsx +6 -6
  28. package/src/sdk/account/getB2BSessionClaims.ts +1 -1
  29. package/src/sdk/account/getIsB2BBuyer.ts +28 -0
  30. package/src/sdk/account/refreshToken.ts +89 -11
  31. package/src/sdk/account/refreshTokenPaths.ts +25 -0
  32. package/src/sdk/account/useRefreshToken.ts +10 -5
  33. package/src/sdk/product/isProductNotFound.ts +13 -0
  34. package/src/sdk/product/usePageProductsQuery.ts +80 -21
  35. package/src/sdk/product/useProductNotFoundRedirect.ts +43 -0
  36. package/src/sdk/product/useProductQuery.ts +29 -0
  37. package/src/sdk/session/index.ts +4 -4
  38. package/src/utils/getCheckoutParentDomain.ts +53 -0
  39. package/src/utils/trustedForwardedHost.ts +18 -0
  40. package/test/components/account/Layout.test.tsx +1 -1
  41. package/test/components/account/Menu.browser.test.tsx +7 -5
  42. package/test/components/account/OrganizationDrawer.browser.test.tsx +13 -13
  43. package/test/components/account/OrganizationDrawerBody.test.tsx +3 -3
  44. package/test/components/account/OrganizationSignInButton.browser.test.tsx +19 -4
  45. package/test/components/navigation/Navbar.browser.test.tsx +3 -3
  46. package/test/components/navigation/NavbarAccountArea.browser.test.tsx +5 -5
  47. package/test/components/navigation/NavbarSlider.browser.test.tsx +3 -3
  48. package/test/experimental/myAccountCmsServerSideProps.test.ts +5 -5
  49. package/test/pages/api/logout.test.ts +106 -0
  50. package/test/pages/api/switch-contract.test.ts +443 -15
  51. package/test/pages/pvt/account/cards/index.test.ts +3 -3
  52. package/test/sdk/account/getIsB2BBuyer.test.ts +52 -0
  53. package/test/sdk/account/refreshToken.browser.test.ts +10 -1
  54. package/test/sdk/account/refreshToken.test.ts +150 -18
  55. package/test/sdk/account/useRefreshToken.browser.test.ts +4 -1
  56. package/test/sdk/product/usePageProductsQuery.browser.test.ts +260 -0
  57. package/test/sdk/product/usePageProductsQuery.deliveryPromise.browser.test.ts +130 -0
  58. package/test/sdk/product/useProductNotFoundRedirect.browser.test.ts +83 -0
  59. package/test/sdk/product/useProductQuery.browser.test.ts +154 -0
  60. package/test/sdk/session/refreshTokenRoute.browser.test.ts +106 -0
  61. package/test/sdk/session/validateSession.browser.test.ts +4 -1
  62. package/test/utils/trustedForwardedHost.test.ts +21 -0
  63. package/src/sdk/account/getIsRepresentative.ts +0 -20
@@ -1,9 +1,9 @@
1
1
 
2
- > @faststore/core@4.10.1-dev.4 generate /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.10.1-dev.6 generate /home/runner/work/faststore/faststore/packages/core
3
3
  > pnpm run gen-types && pnpm run cache-graphql
4
4
 
5
5
 
6
- > @faststore/core@4.10.1-dev.4 gen-types /home/runner/work/faststore/faststore/packages/core
6
+ > @faststore/core@4.10.1-dev.6 gen-types /home/runner/work/faststore/faststore/packages/core
7
7
  > node ../cli/bin/run generate-types .
8
8
 
9
9
  [STARTED] Parse Configuration
@@ -19,7 +19,7 @@
19
19
  [COMPLETED] Generate to @generated/
20
20
  [COMPLETED] Generate outputs
21
21
 
22
- > @faststore/core@4.10.1-dev.4 cache-graphql /home/runner/work/faststore/faststore/packages/core
22
+ > @faststore/core@4.10.1-dev.6 cache-graphql /home/runner/work/faststore/faststore/packages/core
23
23
  > node ../cli/bin/run cache-graphql --config=./discovery.config.default.js --queries=./@generated/persisted-documents.json
24
24
 
25
25
  [Info] - Config file location: /home/runner/work/faststore/faststore/packages/core/discovery.config.default.js
@@ -1,5 +1,5 @@
1
1
 
2
- > @faststore/core@4.10.1-dev.4 test /home/runner/work/faststore/faststore/packages/core
2
+ > @faststore/core@4.10.1-dev.6 test /home/runner/work/faststore/faststore/packages/core
3
3
  > vitest run
4
4
 
5
5
 
@@ -7,27 +7,27 @@
7
7
 
8
8
  Not implemented: navigation to another Document
9
9
  Not implemented: navigation to another Document
10
- ✓  browser  test/sdk/ui/useScrollRestoration.browser.test.ts (43 tests) 1277ms
11
10
  Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
12
11
  npx update-browserslist-db@latest
13
12
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
14
- ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (22 tests) 2676ms
15
- ✓ shows an error state when the list fails to load  421ms
16
- ✓ keeps Confirm disabled when the selected contract is filtered out  319ms
17
- ✓  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 2958ms
18
- ✓ shows the tab bar and renders Personal cards by default  1258ms
19
- ✓ paginates when there are more than 25 cards  429ms
20
- ✓  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 2902ms
21
- ✓ opens the reject confirmation modal with the default English copy  1073ms
22
- ✓ opens the reject confirmation modal with CMS-provided labels  445ms
23
- ✓ shows the CMS-provided toast when a policy is rejected  308ms
24
- ✓  browser  test/components/ui/RichText/RichText.browser.test.tsx (8 tests) 454ms
25
- ✓  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 191ms
26
- ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1460ms
27
- ✓ renders the menu view with contract details and manage footer  856ms
28
- ✓  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 49ms
29
- ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (6 tests) 34ms
30
- ✓  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 129ms
13
+ ✓  browser  test/sdk/ui/useScrollRestoration.browser.test.ts (43 tests) 684ms
14
+ ✓  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 1866ms
15
+ ✓ shows the tab bar and renders Personal cards by default  622ms
16
+ ✓  browser  test/components/account/ContractSwitcher.browser.test.tsx (22 tests) 3448ms
17
+ ✓ shows an error state when the list fails to load  801ms
18
+ ✓ honors CMS-provided labels for the header, current session, search, footer, and available count  325ms
19
+ ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1414ms
20
+ ✓ renders the menu view with contract details and manage footer  696ms
21
+ ✓  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 2486ms
22
+ ✓ opens the reject confirmation modal with the default English copy  875ms
23
+ ✓ opens the reject confirmation modal with CMS-provided labels  320ms
24
+ ✓  browser  test/components/ui/RichText/RichText.browser.test.tsx (8 tests) 301ms
25
+ ✓  browser  test/sdk/product/usePageProductsQuery.browser.test.ts (9 tests) 68ms
26
+ ✓  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 56ms
27
+ ✓  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 116ms
28
+ ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (6 tests) 19ms
29
+ ✓  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 56ms
30
+ ✓  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 46ms
31
31
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx
32
32
  Error in optimistic validation: TypeError: Failed to parse URL from /api/graphql?operationName=ValidateCartMutation&operationHash=3c71b0d3fc2bade14df68abfa271858beb361b12
33
33
   at node:internal/deps/undici/undici:16416:13
@@ -54,15 +54,24 @@ Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
54
54
  }
55
55
  }
56
56
 
57
- ✓  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 56ms
58
57
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx > RecommendationShelf > renders nothing when there is an error
59
58
  Error fetching recommendations undefined boom for campaign vrn:recommendations:acc:rec-top-items-v2:campaign-1
60
59
 
61
- ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 111ms
62
- ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (7 tests) 17ms
63
- ✓  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 99ms
64
- ✓  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 175ms
65
- ✓  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 79ms
60
+ ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 121ms
61
+ ✓  browser  test/sdk/product/useProductQuery.browser.test.ts (5 tests) 334ms
62
+ ✓  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 58ms
63
+ ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (7 tests) 8ms
64
+ ✓  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 60ms
65
+ stderr | test/sdk/session/validateSession.browser.test.ts
66
+ Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
67
+ at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
68
+ at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
69
+ at onValidate (/home/runner/work/faststore/faststore/packages/core/src/sdk/useStore.ts:18:20)
70
+ at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
71
+  at processTicksAndRejections (node:internal/process/task_queues:103:5)
72
+
73
+ ✓  browser  test/sdk/session/validateSession.browser.test.ts (9 tests) 25ms
74
+ ✓  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 48ms
66
75
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > posts the password and redirects to the requested return path
67
76
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
68
77
 
@@ -244,7 +253,6 @@ act(() => {
244
253
  This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
245
254
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
246
255
 
247
- ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 537ms
248
256
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > shows service unavailable when the login request fails
249
257
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
250
258
 
@@ -293,9 +301,9 @@ act(() => {
293
301
  This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act
294
302
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
295
303
 
296
- ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 747ms
297
- ✓ renders the password protection form  350ms
298
- stderr | test/sdk/session/validateSession.browser.test.ts
304
+ ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 506ms
305
+ ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 272ms
306
+ stderr | test/components/cms/RenderSections.browser.test.tsx
299
307
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
300
308
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
301
309
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
@@ -303,9 +311,11 @@ This ensures that you're testing the behavior the user would see in the browser.
303
311
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
304
312
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
305
313
 
306
- ✓  browser  test/sdk/session/validateSession.browser.test.ts (9 tests) 14ms
307
- ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 43ms
308
- stderr | test/components/cms/RenderSections.browser.test.tsx
314
+ ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 42ms
315
+ ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 61ms
316
+ ✓  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 33ms
317
+ ✓  browser  test/sdk/product/usePageProductsQuery.deliveryPromise.browser.test.ts (3 tests) 33ms
318
+ stderr | test/sdk/localization/store-url.browser.test.ts
309
319
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
310
320
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
311
321
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
@@ -313,9 +323,11 @@ This ensures that you're testing the behavior the user would see in the browser.
313
323
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
314
324
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
315
325
 
316
- ✓  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 43ms
317
- ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 89ms
318
- stderr | test/sdk/localization/store-url.browser.test.ts
326
+ ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 3ms
327
+ ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 30ms
328
+ ✓  browser  test/components/account/Menu.browser.test.tsx (6 tests) 250ms
329
+ ✓  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 33ms
330
+ stderr | test/sdk/session/refreshTokenRoute.browser.test.ts
319
331
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
320
332
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
321
333
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
@@ -323,15 +335,12 @@ This ensures that you're testing the behavior the user would see in the browser.
323
335
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
324
336
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
325
337
 
326
- ✓  browser  test/components/account/Menu.browser.test.tsx (6 tests) 307ms
327
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 5ms
328
- ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 40ms
329
- ✓  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 28ms
330
- ✓  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 133ms
331
- ✓  browser  test/components/sections/Account/AccountListQuotes.browser.test.tsx (4 tests) 123ms
332
- ✓  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 52ms
333
- ✓  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 55ms
334
- ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 16ms
338
+ ✓  browser  test/sdk/session/refreshTokenRoute.browser.test.ts (3 tests) 6ms
339
+ ✓  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 131ms
340
+ ✓  browser  test/components/sections/Account/AccountListQuotes.browser.test.tsx (4 tests) 94ms
341
+ ✓  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 66ms
342
+ ✓  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 32ms
343
+ ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 17ms
335
344
  stderr | test/components/account/doLogout.browser.test.ts
336
345
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
337
346
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -340,10 +349,12 @@ This ensures that you're testing the behavior the user would see in the browser.
340
349
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
341
350
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
342
351
 
343
- ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 15ms
344
- ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (5 tests) 366ms
345
- ✓  browser  test/sdk/account/useRefreshToken.browser.test.ts (4 tests) 151ms
346
- ✓  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 43ms
352
+ ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 17ms
353
+ ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (5 tests) 255ms
354
+ ✓  browser  test/sdk/product/useProductNotFoundRedirect.browser.test.ts (7 tests) 31ms
355
+ ✓  browser  test/sdk/account/useRefreshToken.browser.test.ts (4 tests) 134ms
356
+ ✓  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 38ms
357
+ ✓  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (4 tests) 186ms
347
358
  stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
348
359
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
349
360
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -352,15 +363,13 @@ This ensures that you're testing the behavior the user would see in the browser.
352
363
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
353
364
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
354
365
 
355
- ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 20ms
356
- ✓  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 69ms
357
- ✓  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 103ms
358
- ✓  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 135ms
359
- ✓  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 95ms
360
- ✓  browser  test/components/region/useRegion.browser.test.ts (1 test) 25ms
361
- ✓  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 30ms
362
- ✓  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 85ms
363
- ✓  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (2 tests) 253ms
366
+ ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 26ms
367
+ ✓  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 77ms
368
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 77ms
369
+ ✓  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 82ms
370
+ ✓  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 52ms
371
+ ✓  browser  test/components/region/useRegion.browser.test.ts (1 test) 18ms
372
+ ✓  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 21ms
364
373
  stderr | test/sdk/session/sessionStore.browser.test.ts
365
374
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
366
375
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -370,13 +379,9 @@ This ensures that you're testing the behavior the user would see in the browser.
370
379
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
371
380
 
372
381
  ✓  browser  test/sdk/session/sessionStore.browser.test.ts (2 tests) 5ms
373
- ✓  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 33ms
374
- ✓  browser  test/utils/shouldBypassRefreshToken.browser.test.ts (5 tests) 6ms
375
- ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 3ms
376
- ✓  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 100ms
377
- ✓  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 46ms
378
- ✓  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 31ms
379
- ✓  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 41ms
382
+ ✓  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 66ms
383
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 25ms
384
+ ✓  browser  test/utils/shouldBypassRefreshToken.browser.test.ts (5 tests) 5ms
380
385
  stderr | test/sdk/account/refreshToken.browser.test.ts
381
386
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
382
387
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -385,12 +390,18 @@ This ensures that you're testing the behavior the user would see in the browser.
385
390
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
386
391
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
387
392
 
388
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 30ms
389
- ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 5ms
390
- ✓  node  test/server/password-protection-service.test.ts (22 tests) 37ms
391
- ✓  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 232ms
392
- ✓  node  test/server/content/service.test.ts (27 tests) 39ms
393
- ✓  node  test/pages/api/switch-contract.test.ts (25 tests) 98ms
393
+ ✓  browser  test/sdk/account/refreshToken.browser.test.ts (2 tests) 4ms
394
+ ✓  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 71ms
395
+ ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 3ms
396
+ ✓  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 41ms
397
+ ✓  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 26ms
398
+ ✓  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 23ms
399
+ ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 16ms
400
+ ✓  node  test/pages/api/switch-contract.test.ts (61 tests) 145ms
401
+ ✓  node  test/server/password-protection-service.test.ts (22 tests) 28ms
402
+ ✓  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 153ms
403
+ ✓  node  test/server/content/service.test.ts (27 tests) 30ms
404
+ ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 11ms
394
405
  stderr | test/sdk/deliveryPromise/provider.effect.test.tsx > DeliveryPromiseProvider pickup fetch > clears the loading flag after a failed request and retries on the next update
395
406
  Failed to fetch pickup points: Error: network
396
407
  at /home/runner/work/faststore/faststore/packages/core/test/sdk/deliveryPromise/provider.effect.test.tsx:250:30
@@ -417,9 +428,6 @@ This ensures that you're testing the behavior the user would see in the browser.
417
428
  at trace (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/vitest@4.0.18_@opentelemetry+api@1.9.0_@types+node@20.19.13_jiti@2.6.1_jsdom@27.4.0_sas_13be941c57d55f08f06eeaf1c180ddfe/node_modules/vitest/dist/chunks/test.B8ej_ZHS.js:239:21)
418
429
  at runTest (file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1653:12)
419
430
 
420
- ✓  node  test/sdk/deliveryPromise/provider.effect.test.tsx (9 tests) 98ms
421
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 16ms
422
- ✓  node  test/utils/match-url.test.ts (10 tests) 10ms
423
431
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
424
432
  Graphql execution returned with error: [
425
433
  {
@@ -441,6 +449,7 @@ This ensures that you're testing the behavior the user would see in the browser.
441
449
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates an unmapped upstream status (UnknownError 429)
442
450
  Graphql execution returned with error: [ { message: 'slow down', status: 429, type: 'UnknownError' } ]
443
451
 
452
+ ✓  node  test/sdk/deliveryPromise/provider.effect.test.tsx (9 tests) 67ms
444
453
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > recovers status when the error itself is a FastStoreError (not wrapped)
445
454
  Graphql execution returned with error: [ { message: 'bad input', status: 400, type: 'BadRequestError' } ]
446
455
 
@@ -487,7 +496,7 @@ This ensures that you're testing the behavior the user would see in the browser.
487
496
 
488
497
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > maps UnauthorizedError thrown by execute to its status
489
498
  Something unexpected occurred querying Graphql endpoint:
490
- ue [FastStoreError]: expired
499
+ de [FastStoreError]: expired
491
500
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:211:33
492
501
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:216:39
493
502
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1024:60
@@ -531,9 +540,9 @@ This ensures that you're testing the behavior the user would see in the browser.
531
540
 
532
541
  stderr | test/pages/api/graphql.test.ts > /api/graphql ValidateSession refresh-token bypass > forces a 401 on the production host brandless.vtex.app
533
542
  Something unexpected occurred querying Graphql endpoint:
534
- ue [FastStoreError]: Unauthorized: Token expired. Please login again or refresh the page.
535
- at assertValidateSessionTokenIsFresh (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:294:11)
536
- at Module.handler (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:371:5)
543
+ de [FastStoreError]: Unauthorized: Token expired. Please login again or refresh the page.
544
+ at assertValidateSessionTokenIsFresh (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:295:11)
545
+ at Module.handler (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:372:5)
537
546
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:306:13
538
547
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1026:60
539
548
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
@@ -547,9 +556,9 @@ This ensures that you're testing the behavior the user would see in the browser.
547
556
 
548
557
  stderr | test/pages/api/graphql.test.ts > /api/graphql ValidateSession refresh-token bypass > forces a 401 on the production host brandless.fast.store
549
558
  Something unexpected occurred querying Graphql endpoint:
550
- ue [FastStoreError]: Unauthorized: Token expired. Please login again or refresh the page.
551
- at assertValidateSessionTokenIsFresh (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:294:11)
552
- at Module.handler (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:371:5)
559
+ de [FastStoreError]: Unauthorized: Token expired. Please login again or refresh the page.
560
+ at assertValidateSessionTokenIsFresh (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:295:11)
561
+ at Module.handler (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:372:5)
553
562
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:306:13
554
563
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:1026:60
555
564
  at file:///home/runner/work/faststore/faststore/node_modules/.pnpm/@vitest+runner@4.0.18/node_modules/@vitest/runner/dist/index.js:145:11
@@ -561,13 +570,14 @@ This ensures that you're testing the behavior the user would see in the browser.
561
570
  extensions: { status: 401, type: 'UnauthorizedError' }
562
571
  }
563
572
 
564
- ✓  node  test/pages/api/graphql.test.ts (30 tests) 42ms
565
- ✓  node  test/pages/api/unlock.test.ts (15 tests) 150ms
566
- ✓  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (14 tests) 14ms
573
+ ✓  node  test/pages/api/graphql.test.ts (30 tests) 35ms
574
+ ✓  node  test/utils/match-url.test.ts (10 tests) 6ms
575
+ ✓  node  test/pages/api/unlock.test.ts (15 tests) 127ms
576
+ ✓  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (14 tests) 7ms
577
+ ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 5ms
567
578
  stderr | test/components/search/SearchInputComponent.test.tsx
568
579
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
569
580
 
570
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 9ms
571
581
  stderr | test/components/search/SearchInputComponent.test.tsx > SearchInput (OES integration) > renders without crashing
572
582
  Warning: React does not recognize the `visibleDropdown` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `visibledropdown` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
573
583
  at div
@@ -628,95 +638,97 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
628
638
  at Suspense
629
639
  at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
630
640
 
631
- ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 82ms
632
- ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (15 tests) 412ms
633
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 44ms
634
- ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (11 tests) 825ms
635
- ✓ navigates with the search term on blur  360ms
636
- ✓ navigates without a label param when the search is cleared  361ms
641
+ ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 69ms
642
+ ✓  node  test/sdk/account/refreshToken.test.ts (21 tests) 10ms
643
+ ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (15 tests) 327ms
644
+ ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 38ms
637
645
  stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > redirects to /pvt/account/403 when the query fails with 401/403
638
646
  { extensions: { status: 401 } }
639
647
 
640
648
  stderr | test/pages/pvt/account/cards/index.test.ts > Cards page getServerSideProps > renders the error state (no redirect) when the query fails with a non-auth status
641
649
  { extensions: { status: 502 } }
642
650
 
643
- ✓  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 11ms
644
- ✓  node  test/components/quotes/quoteFilters.test.ts (26 tests) 25ms
645
- ✓  node  test/utils/productJsonLd.test.ts (36 tests) 15ms
646
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 13ms
647
- ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 10ms
648
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 28ms
649
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 7ms
651
+ ✓  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 7ms
652
+ ✓  node  test/components/quotes/quoteFilters.test.ts (26 tests) 27ms
653
+ ✓  node  test/utils/productJsonLd.test.ts (36 tests) 8ms
654
+ ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 8ms
655
+ ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 6ms
656
+ ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (11 tests) 811ms
657
+ ✓ navigates with the search term on blur  358ms
658
+ ✓ navigates without a label param when the search is cleared  359ms
659
+ ✓  node  test/utils/clearCookies.test.ts (20 tests) 18ms
660
+ ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 5ms
661
+ ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 25ms
650
662
  stderr | test/sdk/account/useSetPassword.test.ts > useSetPassword > maps wrongcredentials error responses to the existing message
651
663
  Set password request failed: Bad Request
652
664
 
653
- ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 52ms
654
- ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 55ms
655
- ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 7ms
656
- ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (8 tests) 158ms
657
- ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (14 tests) 184ms
658
- ✓  node  test/utils/localization/hreflang.test.ts (8 tests) 9ms
659
- ✓  node  test/server/cms/index.test.ts (7 tests) 10ms
660
- ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (10 tests) 121ms
661
- ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 10ms
662
- ✓  node  test/server/content/promiseCache.test.ts (10 tests) 12ms
663
- ✓  node  test/sdk/redirects/index.test.ts (7 tests) 53ms
664
- ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 57ms
665
- ✓  node  test/proxy.localization.test.ts (5 tests) 31ms
666
- ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 44ms
667
- ✓  node  test/components/account/orders/getDeliveryOptionLabel.test.ts (21 tests) 7ms
668
- ✓  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 25ms
669
- ✓  node  test/server/cms/myAccountDefaultSections.test.ts (9 tests) 10ms
670
- ✓  node  test/utils/productJsonLdRendering.test.tsx (5 tests) 16ms
671
- ✓  node  test/utils/trustedForwardedHost.test.ts (27 tests) 12ms
672
- ✓  node  test/server/index.test.ts (7 tests) 845ms
673
- ✓ should handle options and execute  315ms
674
- ✓  node  test/proxy.test.ts (4 tests) 31ms
675
- ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 46ms
665
+ ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 33ms
666
+ ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 6ms
667
+ ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (8 tests) 120ms
668
+ ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (14 tests) 137ms
669
+ ✓  node  test/utils/localization/hreflang.test.ts (8 tests) 5ms
670
+ ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (10 tests) 90ms
671
+ ✓  node  test/server/cms/index.test.ts (7 tests) 13ms
672
+ ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 8ms
673
+ ✓  node  test/server/content/promiseCache.test.ts (10 tests) 10ms
674
+ ✓  node  test/sdk/redirects/index.test.ts (7 tests) 26ms
675
+ ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 46ms
676
+ ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 31ms
677
+ ✓  node  test/proxy.localization.test.ts (5 tests) 38ms
678
+ ✓  node  test/utils/trustedForwardedHost.test.ts (36 tests) 8ms
679
+ ✓  node  test/components/account/orders/getDeliveryOptionLabel.test.ts (21 tests) 5ms
680
+ ✓  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 16ms
681
+ ✓  node  test/server/cms/myAccountDefaultSections.test.ts (9 tests) 4ms
682
+ ✓  node  test/utils/productJsonLdRendering.test.tsx (5 tests) 11ms
683
+ ✓  node  test/server/index.test.ts (7 tests) 871ms
684
+ ✓ should handle options and execute  432ms
685
+ ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 41ms
686
+ ✓  node  test/proxy.test.ts (4 tests) 14ms
687
+ ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 26ms
688
+ ✓  node  test/pages/api/logout.test.ts (4 tests) 21ms
676
689
  ✓  node  test/utils/shouldBypassRefreshToken.test.ts (14 tests) 5ms
677
- ✓  node  test/server/webops-api.test.ts (9 tests) 11ms
678
- ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 46ms
679
- ✓  node  test/components/account/orders/StatusCard.test.ts (3 tests) 31ms
680
- ✓  node  test/sdk/deliveryPromise/queries.test.ts (4 tests) 10ms
681
- ✓  node  test/sdk/localization/store-url.test.ts (4 tests) 6ms
682
- ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 11ms
683
- ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 8ms
690
+ ✓  node  test/server/webops-api.test.ts (9 tests) 13ms
691
+ ✓  node  test/components/account/orders/StatusCard.test.ts (3 tests) 23ms
692
+ ✓  node  test/sdk/localization/store-url.test.ts (4 tests) 4ms
693
+ ✓  node  test/sdk/deliveryPromise/queries.test.ts (4 tests) 7ms
694
+ ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 9ms
684
695
  ✓  node  test/server/cms/global.test.ts (3 tests) 5ms
685
- ✓  node  test/sdk/deliveryPromise/provider.test.ts (11 tests) 6ms
686
- ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 29ms
687
- ✓  node  test/components/account/Layout.test.tsx (6 tests) 64ms
688
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 7ms
689
- ✓  node  test/server/rootSpan.test.ts (4 tests) 41ms
690
- ✓  node  test/pages/api/preview.test.ts (2 tests) 8ms
696
+ ✓  node  test/sdk/deliveryPromise/provider.test.ts (11 tests) 4ms
697
+ ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 28ms
698
+ ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 6ms
699
+ ✓  node  test/components/account/Layout.test.tsx (6 tests) 57ms
700
+ ✓  node  test/server/rootSpan.test.ts (4 tests) 26ms
701
+ ✓  node  test/pages/api/preview.test.ts (2 tests) 7ms
691
702
  ✓  node  test/components/search/SearchInput.test.ts (6 tests) 7ms
692
703
  ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 4ms
693
- ✓  node  test/pages/pvt/account/403.test.ts (5 tests) 6ms
694
- ✓  node  test/sdk/recommendations/vrn.test.ts (5 tests) 6ms
695
- ✓  node  test/components/region/useRegion.test.ts (1 test) 25ms
696
- ✓  node  test/utils/retry.test.ts (5 tests) 14ms
697
- ✓  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 4ms
704
+ ✓  node  test/pages/pvt/account/403.test.ts (5 tests) 5ms
705
+ ✓  node  test/components/region/useRegion.test.ts (1 test) 20ms
706
+ ✓  node  test/sdk/recommendations/vrn.test.ts (5 tests) 4ms
707
+ ✓  node  test/utils/retry.test.ts (5 tests) 12ms
708
+ ✓  node  test/sdk/account/getIsB2BBuyer.test.ts (7 tests) 4ms
709
+ ✓  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 5ms
710
+ ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 184ms
698
711
  ✓  node  test/utils/userOrderStatus.test.ts (4 tests) 4ms
699
- ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 192ms
700
- ✓  node  test/utils/unlockResponse.test.ts (11 tests) 7ms
712
+ ✓  node  test/utils/unlockResponse.test.ts (11 tests) 3ms
701
713
  ✓  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 4ms
702
- ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 54ms
703
- ✓  node  test/sdk/deliveryPromise/reducer.test.ts (2 tests) 5ms
704
- ✓  node  test/utils/isLocalHost.test.ts (7 tests) 6ms
705
- ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (4 tests) 32ms
706
- ✓  node  test/sdk/session/toSessionInput.test.ts (3 tests) 5ms
707
- ✓  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 5ms
708
- ✓  node  test/components/account/orders/listOrdersLabels.test.ts (2 tests) 4ms
709
- ✓  node  test/utils/getCookie.test.ts (4 tests) 5ms
710
- ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 42ms
711
- ✓  node  test/sdk/session/isSignInAreaResolved.test.ts (3 tests) 2ms
712
- ✓  node  test/utils/filterChannel.test.ts (2 tests) 4ms
713
- ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 4ms
714
- ✓  node  test/instrumentation.test.ts (3 tests) 6ms
714
+ ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 38ms
715
+ ✓  node  test/sdk/deliveryPromise/reducer.test.ts (2 tests) 4ms
716
+ ✓  node  test/utils/isLocalHost.test.ts (7 tests) 4ms
717
+ ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (4 tests) 31ms
718
+ ✓  node  test/sdk/session/toSessionInput.test.ts (3 tests) 3ms
719
+ ✓  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 3ms
720
+ ✓  node  test/components/account/orders/listOrdersLabels.test.ts (2 tests) 2ms
721
+ ✓  node  test/utils/getCookie.test.ts (4 tests) 4ms
722
+ ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 24ms
723
+ ✓  node  test/sdk/session/isSignInAreaResolved.test.ts (3 tests) 3ms
724
+ ✓  node  test/utils/filterChannel.test.ts (2 tests) 3ms
725
+ ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 2ms
726
+ ✓  node  test/instrumentation.test.ts (3 tests) 8ms
715
727
  ✓  node  test/components/account/orders/orderDetailsLabels.test.ts (1 test) 3ms
716
728
  ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 8ms
717
729
 
718
-  Test Files  139 passed (139)
719
-  Tests  1147 passed (1147)
720
-  Start at  21:11:55
721
-  Duration  61.46s (transform 15.20s, setup 0ms, import 56.17s, tests 21.35s, environment 74.47s)
730
+  Test Files  146 passed (146)
731
+  Tests  1249 passed (1249)
732
+  Start at  23:30:30
733
+  Duration  52.71s (transform 12.96s, setup 0ms, import 46.81s, tests 18.26s, environment 64.76s)
722
734
 
@@ -1307,6 +1307,7 @@ export type StoreB2B = {
1307
1307
  contractName: Maybe<Scalars['String']['output']>;
1308
1308
  customerId: Scalars['String']['output'];
1309
1309
  firstName: Maybe<Scalars['String']['output']>;
1310
+ /** @deprecated Always true when `b2b` is set: a B2B session is identified by `unitId` and `customerId`. Check that `b2b` is not null instead. Scheduled for removal in the next major. */
1310
1311
  isRepresentative: Maybe<Scalars['Boolean']['output']>;
1311
1312
  lastName: Maybe<Scalars['String']['output']>;
1312
1313
  organizationManager: Maybe<Scalars['Boolean']['output']>;
@@ -1280,7 +1280,7 @@ type StoreAuthor {
1280
1280
 
1281
1281
  type StoreB2B {
1282
1282
  customerId: String!
1283
- isRepresentative: Boolean
1283
+ isRepresentative: Boolean @deprecated(reason: "Always true when `b2b` is set: a B2B session is identified by `unitId` and `customerId`. Check that `b2b` is not null instead. Scheduled for removal in the next major.")
1284
1284
  unitName: String
1285
1285
  unitId: String
1286
1286
  firstName: String