Skip to content

Feat/unit tests #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 13, 2025
Merged

Feat/unit tests #17

merged 6 commits into from
May 13, 2025

Conversation

abhay-keyvalue
Copy link
Contributor

Pull Request Checklist

  • Read the contributing guidelines.
  • Linked to an issue: Fixes # (replace with the issue number, if applicable)
  • Branch is up-to-date with the base branch: master
  • Changes pass tests locally: npm test or yarn test
  • Documentation has been updated, if necessary
  • Code follows the style guide of the project

Checklist for Reviewers

  • Code follows project conventions and style
  • Changes do not introduce new warnings or errors
  • Unit tests cover the changes
  • Documentation is updated

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT License.

anitta-keyvalue and others added 6 commits May 13, 2025 11:20
…ents

- Introduced unit tests for TableRow component, covering rendering, expansion, and custom rendering.
- Added tests for Pagination component, validating navigation and page size changes.
- Implemented tests for TableHeader component, ensuring correct rendering and filtering functionality.
- Included necessary imports and mock data for testing.
- Introduced unit tests for the SortType enum, verifying its values and count.
- Added tests for the defaultTheme structure, ensuring it contains the correct properties and valid configuration values for colors, table, pagination, and expand icon.
- Updated vitest configuration to include test files with .ts and .tsx extensions.
- Added @vitest/coverage-v8 dependency for improved test coverage reporting.
- Introduced comprehensive unit tests for the MultiLevelTable component, covering rendering, row expansion, sorting, pagination, custom theming, and filtering functionalities.
- Validated the correct application of custom styles and rendering for status cells and pagination controls.
- Ensured that the component behaves as expected with mock data and various configurations.
- Added coverage reporting configuration to vitest for improved test insights.
- Updated .gitignore to exclude coverage directory.
- Enhanced App component with a data-testid for easier testing.
- Introduced unit tests for the App component, validating rendering, theme toggling, and status cell colors.
- Added tests for index exports to ensure correct component and type exports.
- Created main test to verify App component rendering in strict mode.
@abhay-keyvalue abhay-keyvalue merged commit 9281bc7 into develop May 13, 2025
@abhay-keyvalue abhay-keyvalue deleted the feat/unit-tests branch May 13, 2025 08:25
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