Skip to content

[FEAT] Start implementing tests#459

Open
illia-prokopchuk wants to merge 2 commits into
iguazio:developmentfrom
illia-prokopchuk:ML-11522
Open

[FEAT] Start implementing tests#459
illia-prokopchuk wants to merge 2 commits into
iguazio:developmentfrom
illia-prokopchuk:ML-11522

Conversation

@illia-prokopchuk

@illia-prokopchuk illia-prokopchuk commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

📝 Description

Started implementing tests


🛠️ Changes Made

Added Vitest
Added tests for some common components

✅ Checklist

  • I have given the PR a well-structured title describing the domain and the specific change that was made
  • I tested the changes in the browser (locally or via preview build)
  • I confirmed that existing tests pass
  • I added or updated unit / integration tests (if needed)
  • I checked that this change doesn’t introduce new console warnings or lint / formatting errors
  • I updated the relevant Jira ticket with the appropriate details and status

🔗 References


🚨 Potentially Breaking Changes

  • Yes
  • No

🔍 Additional Notes

FYI: It creates some cansole waring due to React.forwardRef
I don't want to add it, because we have a plat to move to React 19, where forwardRef is deprecated


📸 Screenshots / Demos


@muli-cohen muli-cohen left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice written tests overall.
Take a look at Snapshot Testing for a sometimes great min effort: high value ratio.

Comment thread src/lib/components/CopyToClipboard/CopyToClipboard.test.jsx Outdated
Comment thread src/lib/components/LoadButton/LoadButton.test.jsx Outdated
Comment thread src/lib/components/ActionsMenu/ActionsMenu.test.jsx Outdated
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