Skip to content

Support 2k variant, combined listing usage with getProductOptions #6016

Support 2k variant, combined listing usage with getProductOptions

Support 2k variant, combined listing usage with getProductOptions #6016

Triggered via pull request November 29, 2024 19:30
Status Failure
Total duration 4m 10s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 5 warnings
⬣ Prettier
Process completed with exit code 1.
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.test.ts#L2
Replace `checkProductParam,·getAdjacentAndFirstAvailableVariants` with `⏎··checkProductParam,⏎··getAdjacentAndFirstAvailableVariants,⏎`
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.test.ts#L16
Replace `"snowboard"` with `'snowboard'`
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.test.ts#L19
Replace `"Color"` with `'Color'`
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.test.ts#L20
Replace `"Turquoise"` with `'Turquoise',`
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.test.ts#L29
Replace `"snowboard"` with `'snowboard'`
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.test.ts#L32
Replace `"Color"` with `'Color'`
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.test.ts#L33
Replace `"Turquoise"` with `'Turquoise',`
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
Typescript
@shopify/hydrogen-react#typecheck: command (/home/runner/work/hydrogen/hydrogen/packages/hydrogen-react) /opt/hostedtoolcache/node/20.18.1/x64/bin/npm run typecheck exited (1)
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
Typescript
Argument of type 'Product' is not assignable to parameter of type 'RecursivePartial<Product>'.
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.ts#L1
'validate' is defined but never used
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.ts#L2
'decodeEncodedVariant' is defined but never used
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.ts#L3
'Maybe' is defined but never used
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.ts#L4
'PartialDeep' is defined but never used
⬣ ESLint: packages/hydrogen-react/src/getProductOptions.ts#L325
'available' is never reassigned. Use 'const' instead