Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V2] Re-generate lock files and fix hook lib tests #1186

Merged
merged 8 commits into from
May 10, 2023
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,15 @@ 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([])

vcua-mobify marked this conversation as resolved.
Show resolved Hide resolved
// 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