Skip to content

Conversation

@LogicalGuy77
Copy link
Contributor

Add Unit Tests for Utilites

Summary

This PR introduces unit tests for core utility functions related to KServe predictor handling and Kubernetes object status parsing. These tests ensure robustness and correctness of key logic used across our UI.


  • Strengthens test coverage for core UI logic.
  • Prepares groundwork for future changes and e2e tests.
  • Ensures consistent behavior across supported predictor types.

Checklist

  • Unit tests added using jest
  • Edge cases and fallback scenarios covered
  • No production logic modified
  • All tests passing

* fix: update import path for Kubeflow styles

Signed-off-by: LogicalGuy77 <harshitacademia@gmail.com>

* fix: update build scripts to ensure CSS assets are copied correctly

Signed-off-by: LogicalGuy77 <harshitacademia@gmail.com>

* fix: enhance frontend dependency installation and style setup

Signed-off-by: LogicalGuy77 <harshitacademia@gmail.com>

* fix: enhance frontend dependency installation and style setup

Signed-off-by: LogicalGuy77 <harshitacademia@gmail.com>

* fix: enhance frontend dependency installation and style setup

Signed-off-by: LogicalGuy77 <harshitacademia@gmail.com>

* feat: setup Jest and __mocks__ for unit testing

* feat: enhance type definitions and add tests for predictor extension specifications

* fix: format code for consistency in utils.jest.spec.ts

* fix: update unit test command to use Jest instead of production

---------

Signed-off-by: LogicalGuy77 <harshitacademia@gmail.com>
@LogicalGuy77 LogicalGuy77 changed the title feat: added Unit testing using Jest for utils file feat: added Unit testing using Jest Jun 14, 2025
@juliusvonkohout juliusvonkohout merged commit 43485fb into kserve:master Jun 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants