Add unit test for CommonServer and CommonUi #1415

Closed
opened 2026-04-05 16:27:12 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jinvillaz on 11/26/2023

Adds tests for CommonServer and CommonUI

Adds new tests for some of the files in Common/Server

  • CommonServer/Tests/API/ProjectAPI.test.ts
  • CommonServer/Tests/API/UserSmsApi.test.ts

Adds new tests for some of the files in Common/UI

  • CommonUI/src/Tests/Components/Pagination.test.tsx
  • CommonUI/src/Tests/Components/List.test.tsx

Add changes on some files for testing

  • CommonUI/src/Components/ComponentLoader/ComponentLoader.tsx
  • CommonUI/src/Components/Pagination/Pagination.tsx
  • CommonUI/src/Components/List/List.tsx
  • CommonUI/jest.config.json
  • CommonUI/setupTest.js

Pull Request Checklist:

  • Please make sure all jobs pass before requesting a review.
  • Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).
  • Have you lint your code locally before submission?
  • Did you write tests where appropriate?

Screenshots (if appropriate):

*Originally created by @jinvillaz on 11/26/2023* ### Adds tests for CommonServer and CommonUI #### Adds new tests for some of the files in Common/Server - CommonServer/Tests/API/ProjectAPI.test.ts - CommonServer/Tests/API/UserSmsApi.test.ts #### Adds new tests for some of the files in Common/UI - CommonUI/src/Tests/Components/Pagination.test.tsx - CommonUI/src/Tests/Components/List.test.tsx #### Add changes on some files for testing - CommonUI/src/Components/ComponentLoader/ComponentLoader.tsx - CommonUI/src/Components/Pagination/Pagination.tsx - CommonUI/src/Components/List/List.tsx - CommonUI/jest.config.json - CommonUI/setupTest.js ### Pull Request Checklist: - [x] Please make sure all jobs pass before requesting a review. - [ ] Put `closes #XXXX` in your comment to auto-close the issue that your PR fixes (if such). - [x] Have you lint your code locally before submission? - [x] Did you write tests where appropriate? ### Related Issue? ### Screenshots (if appropriate):
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#1415