Skip to content

Commit

Permalink
[V2] Re-generate lock files and fix hook lib tests (#1186)
Browse files Browse the repository at this point in the history
* re-generate lock files and fix test

* Update packages/commerce-sdk-react/src/hooks/ShopperBaskets/index.test.ts

* Rebuild lockfiles using node 14 npm 8

* Revert "Rebuild lockfiles using node 14 npm 8"

This reverts commit 3d5c0cb.

* Use pwa-kit-dev for lint and format

* Revert "Use pwa-kit-dev for lint and format"

This reverts commit f46d83e.

* Add typescript to internal-lib-build and rebuild lock files

---------

Co-authored-by: vcua-mobify <47404250+vcua-mobify@users.noreply.github.com>
Co-authored-by: vcua-mobify <vcua@salesforce.com>
  • Loading branch information
3 people authored May 10, 2023
1 parent 0effe5b commit 9f33b95
Show file tree
Hide file tree
Showing 14 changed files with 88,051 additions and 87,117 deletions.
661 changes: 507 additions & 154 deletions package-lock.json

Large diffs are not rendered by default.

9,297 changes: 4,663 additions & 4,634 deletions packages/commerce-sdk-react/package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,14 @@ describe('Shopper Baskets hooks', () => {
const unimplemented = getUnimplementedEndpoints(ShopperBaskets, queries, mutations)
// If this test fails: create a new query hook, add the endpoint to the mutations enum,
// or add it to the `expected` array with a comment explaining "TODO" or "never" (and why).
expect(unimplemented).toEqual([])
// these new endpoints will not be released in SDK V2
expect(unimplemented).toEqual([
'updateAsAgentBasket',
'addPriceAdjustmentToBasket',
'removePriceAdjustmentFromBasket',
'updatePriceAdjustmentInBasket',
'updateAsStorefrontBasket'
])
})
test('all mutations have cache update logic', () => {
// unimplemented = value in mutations enum, but no method in cache update matrix
Expand Down
Loading

0 comments on commit 9f33b95

Please sign in to comment.