Improve unit test coverage in lib/cards
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Background
During the initial implementation of KCard and KCardGrid, we implemented some basic unit tests for KCard itself, but later I skipped covering some areas completely due to strange issues with reactivity and mocking where usual techniques didn't work.
Most notably this affects:
KCardGriduseGridLayoutuseGridLoading
that have no test suites yet.
Related Slack thread.
Summary
The goal of this issue is to start a test suite for each of the files listed above, and cover main functionality with unit tests.
There's a little chance is that the problems mentioned above got fixed with the recent Vue version update. However if still blocked, in the scope of this issue it is to continue debugging and if possible to resolve everything that prevents from implementing the test suites well. The aforementioned Slack thread contains some advice from @rtibbles.
The Value Add
Reduces tech debt.