frontends
frontends copied to clipboard
[UNITTESTS] useCountries.ts, useCustomerPassword.ts, useListing.ts
Description
| File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s |
|---|---|---|---|---|---|
| useCmsMeta.ts | 45.23 | 100 | 0 | 45.23 | 20-42 |
| useCountries.ts | 41.26 | 100 | 0 | 41.26 | 27-63 |
| useCustomerPassword.ts | 47.29 | 100 | 0 | 47.29 | 36-74 |
| useListing.ts | 31.91 | 100 | 0 | 31.91 | 15-17,19-42,175-218,229-492 |
Use Case
Package: @shopware-pwa/composables-next
We should aim for better unit-test coverage.
Proposed Solution
No response
Alternatives Considered
No response
Additional Context
I assume the new API client will only change the logic inside the components but not the input/output. Also, it is better to have a higher coverage and then adapt the unit tests instead of making everything later when the new API client is ready.
useCmsMeta.ts moved to https://github.com/shopware/frontends/issues/422
useListing.ts https://github.com/shopware/frontends/pull/915