kolibri-design-system icon indicating copy to clipboard operation
kolibri-design-system copied to clipboard

Improve unit test coverage in lib/cards

Open MisRob opened this issue 8 months ago • 0 comments

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:

  • KCardGrid
  • useGridLayout
  • useGridLoading

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.

MisRob avatar Apr 21 '25 13:04 MisRob