@faststore/core 4.10.1-dev.6 → 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 (60) hide show
  1. package/.turbo/turbo-generate.log +3 -3
  2. package/.turbo/turbo-test.log +176 -167
  3. package/@generated/graphql.ts +1 -0
  4. package/@generated/schema.graphql +1 -1
  5. package/CHANGELOG.md +29 -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/useProductNotFoundRedirect.ts +43 -0
  35. package/src/sdk/product/useProductQuery.ts +29 -0
  36. package/src/sdk/session/index.ts +4 -4
  37. package/src/utils/getCheckoutParentDomain.ts +53 -0
  38. package/src/utils/trustedForwardedHost.ts +18 -0
  39. package/test/components/account/Layout.test.tsx +1 -1
  40. package/test/components/account/Menu.browser.test.tsx +7 -5
  41. package/test/components/account/OrganizationDrawer.browser.test.tsx +13 -13
  42. package/test/components/account/OrganizationDrawerBody.test.tsx +3 -3
  43. package/test/components/account/OrganizationSignInButton.browser.test.tsx +19 -4
  44. package/test/components/navigation/Navbar.browser.test.tsx +3 -3
  45. package/test/components/navigation/NavbarAccountArea.browser.test.tsx +5 -5
  46. package/test/components/navigation/NavbarSlider.browser.test.tsx +3 -3
  47. package/test/experimental/myAccountCmsServerSideProps.test.ts +5 -5
  48. package/test/pages/api/logout.test.ts +106 -0
  49. package/test/pages/api/switch-contract.test.ts +443 -15
  50. package/test/pages/pvt/account/cards/index.test.ts +3 -3
  51. package/test/sdk/account/getIsB2BBuyer.test.ts +52 -0
  52. package/test/sdk/account/refreshToken.browser.test.ts +10 -1
  53. package/test/sdk/account/refreshToken.test.ts +150 -18
  54. package/test/sdk/account/useRefreshToken.browser.test.ts +4 -1
  55. package/test/sdk/product/useProductNotFoundRedirect.browser.test.ts +83 -0
  56. package/test/sdk/product/useProductQuery.browser.test.ts +154 -0
  57. package/test/sdk/session/refreshTokenRoute.browser.test.ts +106 -0
  58. package/test/sdk/session/validateSession.browser.test.ts +4 -1
  59. package/test/utils/trustedForwardedHost.test.ts +21 -0
  60. package/src/sdk/account/getIsRepresentative.ts +0 -20
@@ -1,9 +1,9 @@
1
1
 
2
- > @faststore/core@4.10.1-dev.5 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.5 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.5 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.5 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,31 +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) 1091ms
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) 4449ms
15
- ✓ shows an error state when the list fails to load  1009ms
16
- ✓ requires selecting a contract before Confirm is enabled, then switches (REQ-03)  566ms
17
- ✓ keeps Confirm disabled until a different contract is selected  389ms
18
- ✓ keeps Confirm disabled when switching is unavailable  458ms
19
- ✓  browser  test/components/account/cards/MyAccountListCards.browser.test.tsx (16 tests) 2611ms
20
- ✓ shows the tab bar and renders Personal cards by default  1155ms
21
- ✓ paginates when there are more than 25 cards  411ms
22
- ✓  browser  test/components/account/orders/BuyingPolicyAlert.browser.test.tsx (13 tests) 3396ms
23
- ✓ opens the reject confirmation modal with the default English copy  1312ms
24
- ✓ opens the reject confirmation modal with CMS-provided labels  558ms
25
- ✓ shows the default English toast when a policy is rejected  350ms
26
- ✓  browser  test/components/ui/RichText/RichText.browser.test.tsx (8 tests) 559ms
27
- ✓  browser  test/sdk/product/usePageProductsQuery.browser.test.ts (9 tests) 119ms
28
- ✓  browser  test/components/account/OrganizationDrawer.browser.test.tsx (10 tests) 1598ms
29
- ✓ renders the menu view with contract details and manage footer  844ms
30
- ✓  browser  test/components/CartRecommendationShelf/CartRecommendationShelf.browser.test.tsx (13 tests) 251ms
31
- ✓  browser  test/sdk/localization/useBindingSelector.browser.test.tsx (9 tests) 94ms
32
- ✓  browser  test/sdk/session/reconcileSessionLocale.browser.test.ts (6 tests) 32ms
33
- ✓  browser  test/components/ui/ProductGallery/GalleryPageHeightLock.browser.test.tsx (8 tests) 74ms
34
- ✓  browser  test/sdk/recommendations/useRecommendationShelf.browser.test.tsx (12 tests) 56ms
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
35
31
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx
36
32
  Error in optimistic validation: TypeError: Failed to parse URL from /api/graphql?operationName=ValidateCartMutation&operationHash=3c71b0d3fc2bade14df68abfa271858beb361b12
37
33
   at node:internal/deps/undici/undici:16416:13
@@ -61,10 +57,21 @@ Browserslist: browsers data (caniuse-lite) is 8 months old. Please run:
61
57
  stderr | test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx > RecommendationShelf > renders nothing when there is an error
62
58
  Error fetching recommendations undefined boom for campaign vrn:recommendations:acc:rec-top-items-v2:campaign-1
63
59
 
64
- ✓  browser  test/components/RecommendationShelf/RecommendationShelf.browser.test.tsx (8 tests) 114ms
65
- ✓  browser  test/components/CartSidebar/CartSidebar.browser.test.tsx (5 tests) 115ms
66
- ✓  browser  test/components/sections/Account/AccountOrderDetails.browser.test.tsx (4 tests) 127ms
67
- ✓  browser  test/sdk/session/getInitialSession.browser.test.ts (7 tests) 9ms
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
68
75
  stderr | test/pages/password-protection.browser.test.tsx > PasswordProtectionLogin > posts the password and redirects to the requested return path
69
76
  Warning: An update to PasswordProtectionLogin inside a test was not wrapped in act(...).
70
77
 
@@ -294,11 +301,9 @@ act(() => {
294
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
295
302
  at PasswordProtectionLogin (/home/runner/work/faststore/faststore/packages/core/src/pages/password-protection/index.tsx:19:69)
296
303
 
297
- ✓  browser  test/pages/password-protection.browser.test.tsx (6 tests) 678ms
298
- ✓ renders the password protection form  349ms
299
- ✓  browser  test/components/navigation/Navbar.browser.test.tsx (3 tests) 62ms
300
- ✓  browser  test/components/account/OrganizationDrawerFooter.browser.test.tsx (8 tests) 371ms
301
- 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
302
307
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
303
308
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
304
309
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
@@ -306,9 +311,11 @@ This ensures that you're testing the behavior the user would see in the browser.
306
311
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
307
312
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
308
313
 
309
- ✓  browser  test/sdk/session/validateSession.browser.test.ts (9 tests) 13ms
310
- ✓  browser  test/sdk/account/useSwitchContract.browser.test.ts (5 tests) 49ms
311
- 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
312
319
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
313
320
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
314
321
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
@@ -316,10 +323,11 @@ This ensures that you're testing the behavior the user would see in the browser.
316
323
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
317
324
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
318
325
 
319
- ✓  browser  test/components/cms/RenderSections.browser.test.tsx (5 tests) 92ms
320
- ✓  browser  test/components/navigation/NavbarSlider.browser.test.tsx (2 tests) 31ms
321
- ✓  browser  test/sdk/product/usePageProductsQuery.deliveryPromise.browser.test.ts (3 tests) 25ms
322
- 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
323
331
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
324
332
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
325
333
  at validateCart (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/index.ts:124:9)
@@ -327,15 +335,12 @@ This ensures that you're testing the behavior the user would see in the browser.
327
335
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
328
336
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
329
337
 
330
- ✓  browser  test/sdk/localization/store-url.browser.test.ts (3 tests) 6ms
331
- ✓  browser  test/sdk/account/useAvailableContracts.browser.test.ts (6 tests) 29ms
332
- ✓  browser  test/components/account/Menu.browser.test.tsx (6 tests) 352ms
333
- ✓  browser  test/components/templates/SearchPage/SearchWrapper.browser.test.tsx (3 tests) 41ms
334
- ✓  browser  test/sdk/recommendations/useRecommendationShelf.sessionFallback.browser.test.tsx (2 tests) 111ms
335
- ✓  browser  test/components/sections/Account/AccountListQuotes.browser.test.tsx (4 tests) 145ms
336
- ✓  browser  test/components/navigation/NavbarAccountArea.browser.test.tsx (4 tests) 59ms
337
- ✓  browser  test/components/CartRecommendationShelf/CartRecommendationProductCard.browser.test.tsx (3 tests) 54ms
338
- ✓  browser  test/sdk/account/changeContractToken.browser.test.ts (9 tests) 14ms
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
339
344
  stderr | test/components/account/doLogout.browser.test.ts
340
345
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
341
346
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -344,10 +349,12 @@ This ensures that you're testing the behavior the user would see in the browser.
344
349
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
345
350
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
346
351
 
347
- ✓  browser  test/components/account/doLogout.browser.test.ts (1 test) 23ms
348
- ✓  browser  test/sdk/account/useRefreshToken.browser.test.ts (4 tests) 143ms
349
- ✓  browser  test/components/account/OrganizationDrawerHeader.browser.test.tsx (5 tests) 307ms
350
- ✓  browser  test/components/ui/LocalizationButton.browser.test.tsx (3 tests) 50ms
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
351
358
  stderr | test/sdk/account/clearPersistedSessionState.browser.test.ts
352
359
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
353
360
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -356,15 +363,13 @@ This ensures that you're testing the behavior the user would see in the browser.
356
363
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
357
364
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
358
365
 
359
- ✓  browser  test/sdk/account/clearPersistedSessionState.browser.test.ts (4 tests) 34ms
360
- ✓  browser  test/components/sections/Account/AccountOrderDelivery.browser.test.tsx (2 tests) 84ms
361
- ✓  browser  test/components/account/orders/DeliveryOptionAccordion.browser.test.tsx (2 tests) 99ms
362
- ✓  browser  test/components/sections/Account/AccountOrderStatus.browser.test.tsx (3 tests) 94ms
363
- ✓  browser  test/components/sections/Account/AccountListCards.browser.test.tsx (3 tests) 93ms
364
- ✓  browser  test/components/region/useRegion.browser.test.ts (1 test) 26ms
365
- ✓  browser  test/components/sections/Account/AccountOrdersList.browser.test.tsx (2 tests) 29ms
366
- ✓  browser  test/components/account/orders/SummaryCard.browser.test.tsx (2 tests) 98ms
367
- ✓  browser  test/components/account/OrganizationSignInButton.browser.test.tsx (2 tests) 260ms
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
368
373
  stderr | test/sdk/session/sessionStore.browser.test.ts
369
374
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
370
375
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -373,14 +378,10 @@ This ensures that you're testing the behavior the user would see in the browser.
373
378
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
374
379
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
375
380
 
376
- ✓  browser  test/sdk/session/sessionStore.browser.test.ts (2 tests) 7ms
377
- ✓  browser  test/components/account/orders/DeliveryOptionAccordionDeliveryInfo.browser.test.tsx (1 test) 46ms
378
- ✓  browser  test/utils/shouldBypassRefreshToken.browser.test.ts (5 tests) 6ms
379
- ✓  browser  test/components/account/orders/StatusCard.browser.test.tsx (2 tests) 94ms
380
- ✓  browser  test/sdk/session/reconcileSessionLocale.disabled.browser.test.ts (1 test) 4ms
381
- ✓  browser  test/components/account/orders/DeliveryCard.browser.test.tsx (1 test) 53ms
382
- ✓  browser  test/components/account/orders/DeliveryOptionAccordionProducts.browser.test.tsx (1 test) 54ms
383
- ✓  browser  test/components/skeletons/ProductGridSkeleton.browser.test.tsx (2 tests) 43ms
381
+ ✓  browser  test/sdk/session/sessionStore.browser.test.ts (2 tests) 5ms
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
384
385
  stderr | test/sdk/account/refreshToken.browser.test.ts
385
386
  Error in optimistic validation: TypeError: Cannot read properties of undefined (reading 'read')
386
387
  at waitForSessionValidated (/home/runner/work/faststore/faststore/packages/core/src/sdk/cart/waitForSessionValidated.ts:16:32)
@@ -389,12 +390,18 @@ This ensures that you're testing the behavior the user would see in the browser.
389
390
  at a (/home/runner/work/faststore/faststore/packages/sdk/dist/es/index.mjs:357:23)
390
391
   at processTicksAndRejections (node:internal/process/task_queues:103:5)
391
392
 
392
- ✓  node  test/utils/localization/bindingPaths.test.ts (71 tests) 31ms
393
- ✓  browser  test/sdk/account/refreshToken.browser.test.ts (1 test) 6ms
394
- ✓  node  test/server/password-protection-service.test.ts (22 tests) 36ms
395
- ✓  browser  test/components/account/orders/FilterFacetPendingApproval.browser.test.tsx (1 test) 226ms
396
- ✓  node  test/server/content/service.test.ts (27 tests) 40ms
397
- ✓  node  test/pages/api/switch-contract.test.ts (25 tests) 84ms
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
398
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
399
406
  Failed to fetch pickup points: Error: network
400
407
  at /home/runner/work/faststore/faststore/packages/core/test/sdk/deliveryPromise/provider.effect.test.tsx:250:30
@@ -421,9 +428,6 @@ This ensures that you're testing the behavior the user would see in the browser.
421
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)
422
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)
423
430
 
424
- ✓  node  test/sdk/deliveryPromise/provider.effect.test.tsx (9 tests) 80ms
425
- ✓  node  test/sdk/localization/useBindingSelector.test.tsx (22 tests) 15ms
426
- ✓  node  test/utils/match-url.test.ts (10 tests) 11ms
427
431
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates the upstream 400 from a wrapped BadRequestError instead of 500
428
432
  Graphql execution returned with error: [
429
433
  {
@@ -445,6 +449,7 @@ This ensures that you're testing the behavior the user would see in the browser.
445
449
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > propagates an unmapped upstream status (UnknownError 429)
446
450
  Graphql execution returned with error: [ { message: 'slow down', status: 429, type: 'UnknownError' } ]
447
451
 
452
+ ✓  node  test/sdk/deliveryPromise/provider.effect.test.tsx (9 tests) 67ms
448
453
  stderr | test/pages/api/graphql.test.ts > /api/graphql error status propagation > recovers status when the error itself is a FastStoreError (not wrapped)
449
454
  Graphql execution returned with error: [ { message: 'bad input', status: 400, type: 'BadRequestError' } ]
450
455
 
@@ -491,7 +496,7 @@ This ensures that you're testing the behavior the user would see in the browser.
491
496
 
492
497
  stderr | test/pages/api/graphql.test.ts > /api/graphql request handling > maps UnauthorizedError thrown by execute to its status
493
498
  Something unexpected occurred querying Graphql endpoint:
494
- ue [FastStoreError]: expired
499
+ de [FastStoreError]: expired
495
500
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:211:33
496
501
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:216:39
497
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
@@ -535,9 +540,9 @@ This ensures that you're testing the behavior the user would see in the browser.
535
540
 
536
541
  stderr | test/pages/api/graphql.test.ts > /api/graphql ValidateSession refresh-token bypass > forces a 401 on the production host brandless.vtex.app
537
542
  Something unexpected occurred querying Graphql endpoint:
538
- ue [FastStoreError]: Unauthorized: Token expired. Please login again or refresh the page.
539
- at assertValidateSessionTokenIsFresh (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:294:11)
540
- 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)
541
546
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:306:13
542
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
543
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
@@ -551,9 +556,9 @@ This ensures that you're testing the behavior the user would see in the browser.
551
556
 
552
557
  stderr | test/pages/api/graphql.test.ts > /api/graphql ValidateSession refresh-token bypass > forces a 401 on the production host brandless.fast.store
553
558
  Something unexpected occurred querying Graphql endpoint:
554
- ue [FastStoreError]: Unauthorized: Token expired. Please login again or refresh the page.
555
- at assertValidateSessionTokenIsFresh (/home/runner/work/faststore/faststore/packages/core/src/pages/api/graphql.ts:294:11)
556
- 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)
557
562
  at /home/runner/work/faststore/faststore/packages/core/test/pages/api/graphql.test.ts:306:13
558
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
559
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
@@ -565,13 +570,14 @@ This ensures that you're testing the behavior the user would see in the browser.
565
570
  extensions: { status: 401, type: 'UnauthorizedError' }
566
571
  }
567
572
 
568
- ✓  node  test/pages/api/graphql.test.ts (30 tests) 51ms
569
- ✓  node  test/pages/api/unlock.test.ts (15 tests) 185ms
570
- ✓  node  test/sdk/session/syncSalesChannelFromOrderForm.test.ts (14 tests) 12ms
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
571
578
  stderr | test/components/search/SearchInputComponent.test.tsx
572
579
  Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?
573
580
 
574
- ✓  node  test/sdk/localization/bindingSelector.test.ts (18 tests) 12ms
575
581
  stderr | test/components/search/SearchInputComponent.test.tsx > SearchInput (OES integration) > renders without crashing
576
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.
577
583
  at div
@@ -632,94 +638,97 @@ Warning: React does not recognize the `providerProps` prop on a DOM element. If
632
638
  at Suspense
633
639
  at Wrapper (/home/runner/work/faststore/faststore/packages/core/test/components/search/SearchInputComponent.test.tsx:106:20)
634
640
 
635
- ✓  node  test/components/search/SearchInputComponent.test.tsx (6 tests) 62ms
636
- ✓  node  test/components/quotes/MyAccountListQuotesTable.test.tsx (15 tests) 410ms
637
- ✓  node  test/sdk/search/useSearchHistory.test.ts (13 tests) 52ms
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
638
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
639
646
  { extensions: { status: 401 } }
640
647
 
641
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
642
649
  { extensions: { status: 502 } }
643
650
 
644
- ✓  node  test/pages/pvt/account/cards/index.test.ts (8 tests) 8ms
645
- ✓  node  test/components/quotes/MyAccountListQuotes.test.tsx (11 tests) 869ms
646
- ✓ navigates with the search term on blur  363ms
647
- ✓ navigates without a label param when the search is cleared  361ms
648
- ✓  node  test/components/quotes/quoteFilters.test.ts (26 tests) 28ms
649
- ✓  node  test/utils/productJsonLd.test.ts (36 tests) 13ms
650
- ✓  node  test/experimental/myAccountCmsServerSideProps.test.ts (5 tests) 7ms
651
- ✓  node  test/utils/cookieCacheBusting.test.ts (10 tests) 16ms
652
- ✓  node  test/utils/clearCookies.test.ts (20 tests) 28ms
653
- ✓  node  test/utils/multipleTemplates.test.ts (8 tests) 8ms
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
654
662
  stderr | test/sdk/account/useSetPassword.test.ts > useSetPassword > maps wrongcredentials error responses to the existing message
655
663
  Set password request failed: Bad Request
656
664
 
657
- ✓  node  test/sdk/account/useSetPassword.test.ts (6 tests) 46ms
658
- ✓  node  test/sdk/orderEntry/useOrderEntryOperation.test.ts (8 tests) 42ms
659
- ✓  node  test/utils/localization/localizeRedirectDestination.test.ts (11 tests) 5ms
660
- ✓  node  test/components/quotes/MyAccountQuotesFilterSlider.test.tsx (8 tests) 182ms
661
- ✓  node  test/components/quotes/MyAccountQuotesStatusSelector.test.tsx (14 tests) 178ms
662
- ✓  node  test/utils/localization/hreflang.test.ts (8 tests) 6ms
663
- ✓  node  test/components/quotes/MyAccountQuotesSelectedTags.test.tsx (10 tests) 132ms
664
- ✓  node  test/server/cms/index.test.ts (7 tests) 12ms
665
- ✓  node  test/sdk/account/getMyAccountRoutes.test.ts (13 tests) 10ms
666
- ✓  node  test/server/content/promiseCache.test.ts (10 tests) 16ms
667
- ✓  node  test/sdk/redirects/index.test.ts (7 tests) 49ms
668
- ✓  node  test/sdk/orderEntry/useOrderEntryUpload.test.ts (8 tests) 48ms
669
- ✓  node  test/sdk/orderEntry/useOrderEntry.test.ts (8 tests) 57ms
670
- ✓  node  test/proxy.localization.test.ts (5 tests) 113ms
671
- ✓  node  test/components/account/orders/getDeliveryOptionLabel.test.ts (21 tests) 9ms
672
- ✓  node  test/sdk/graphql/retryPolicy.test.ts (18 tests) 26ms
673
- ✓  node  test/server/cms/myAccountDefaultSections.test.ts (9 tests) 8ms
674
- ✓  node  test/utils/productJsonLdRendering.test.tsx (5 tests) 28ms
675
- ✓  node  test/server/index.test.ts (7 tests) 667ms
676
- ✓  node  test/utils/trustedForwardedHost.test.ts (27 tests) 8ms
677
- ✓  node  test/proxy.test.ts (4 tests) 16ms
678
- ✓  node  test/utils/shouldBypassRefreshToken.test.ts (14 tests) 8ms
679
- ✓  node  test/server/webops-api.test.ts (9 tests) 16ms
680
- ✓  node  test/sdk/analytics/useStartRecommendationSession.test.ts (6 tests) 45ms
681
- ✓  node  test/components/account/orders/StatusCard.test.ts (3 tests) 22ms
682
- ✓  node  test/sdk/localization/store-url.test.ts (4 tests) 5ms
683
- ✓  node  test/sdk/orderEntry/useOrderFormItems.test.ts (7 tests) 51ms
684
- ✓  node  test/sdk/deliveryPromise/queries.test.ts (4 tests) 10ms
685
- ✓  node  test/sdk/cart/waitForSessionValidated.test.ts (5 tests) 12ms
686
- ✓  node  test/sdk/account/refreshToken.test.ts (5 tests) 9ms
687
- ✓  node  test/server/cms/global.test.ts (3 tests) 4ms
688
- ✓  node  test/sdk/deliveryPromise/provider.test.ts (11 tests) 7ms
689
- ✓  node  test/sdk/auth/useAuth.test.ts (5 tests) 32ms
690
- ✓  node  test/utils/getRequestHostname.test.ts (12 tests) 8ms
691
- ✓  node  test/components/account/Layout.test.tsx (6 tests) 65ms
692
- ✓  node  test/server/rootSpan.test.ts (4 tests) 46ms
693
- ✓  node  test/pages/api/preview.test.ts (2 tests) 9ms
694
- ✓  node  test/components/search/SearchInput.test.ts (6 tests) 8ms
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
689
+ ✓  node  test/utils/shouldBypassRefreshToken.test.ts (14 tests) 5ms
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
695
+ ✓  node  test/server/cms/global.test.ts (3 tests) 5ms
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
702
+ ✓  node  test/components/search/SearchInput.test.ts (6 tests) 7ms
695
703
  ✓  node  test/utils/validateSessionRefreshToken.test.ts (6 tests) 4ms
696
- ✓  node  test/pages/pvt/account/403.test.ts (5 tests) 6ms
697
- ✓  node  test/components/region/useRegion.test.ts (1 test) 27ms
698
- ✓  node  test/utils/retry.test.ts (5 tests) 15ms
699
- ✓  node  test/sdk/recommendations/vrn.test.ts (5 tests) 5ms
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
700
709
  ✓  node  test/sdk/account/getB2BSessionClaims.test.ts (4 tests) 5ms
701
- ✓  node  test/utils/userOrderStatus.test.ts (4 tests) 5ms
702
- ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 193ms
703
- ✓  node  test/utils/unlockResponse.test.ts (11 tests) 6ms
704
- ✓  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 7ms
705
- ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 49ms
706
- ✓  node  test/sdk/deliveryPromise/reducer.test.ts (2 tests) 6ms
707
- ✓  node  test/components/quotes/MyAccountQuoteStatusBadge.test.tsx (4 tests) 45ms
710
+ ✓  node  test/sdk/recommendations/useRecommendationUserId.test.ts (4 tests) 184ms
711
+ ✓  node  test/utils/userOrderStatus.test.ts (4 tests) 4ms
712
+ ✓  node  test/utils/unlockResponse.test.ts (11 tests) 3ms
713
+ ✓  node  test/sdk/recommendations/useRecommendations.test.ts (2 tests) 4ms
714
+ ✓  node  test/components/account/OrganizationDrawerBody.test.tsx (3 tests) 38ms
715
+ ✓  node  test/sdk/deliveryPromise/reducer.test.ts (2 tests) 4ms
708
716
  ✓  node  test/utils/isLocalHost.test.ts (7 tests) 4ms
709
- ✓  node  test/sdk/session/toSessionInput.test.ts (3 tests) 5ms
710
- ✓  node  test/components/account/orders/getOrderTotalLabel.test.ts (6 tests) 5ms
711
- ✓  node  test/components/account/orders/listOrdersLabels.test.ts (2 tests) 3ms
712
- ✓  node  test/utils/getCookie.test.ts (4 tests) 7ms
713
- ✓  node  test/components/auth/ProfileChallenge.test.tsx (3 tests) 40ms
714
- ✓  node  test/sdk/session/isSignInAreaResolved.test.ts (3 tests) 4ms
715
- ✓  node  test/utils/filterChannel.test.ts (2 tests) 4ms
716
- ✓  node  test/sdk/analytics/utils.test.ts (2 tests) 3ms
717
- ✓  node  test/instrumentation.test.ts (3 tests) 5ms
718
- ✓  node  test/components/account/orders/orderDetailsLabels.test.ts (1 test) 4ms
719
- ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 11ms
720
-
721
-  Test Files  141 passed (141)
722
-  Tests  1159 passed (1159)
723
-  Start at  22:57:57
724
-  Duration  65.40s (transform 15.23s, setup 0ms, import 57.33s, tests 23.25s, environment 80.48s)
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
727
+ ✓  node  test/components/account/orders/orderDetailsLabels.test.ts (1 test) 3ms
728
+ ✓  node  test/sdk/account/clearPersistedSessionState.test.ts (1 test) 8ms
729
+
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)
725
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']>;