We need to write Jest test cases for the EmptyState component. The goal of this issue is to ensure that the component functions as expected by testing its rendering, behavior, and edge cases.
Acceptance Criteria
[ ] Write test cases for all key functionalities of the EmptyState component.
[ ] Ensure the component renders correctly.
[ ] Test props, state, and any side effects (e.g., events, hooks).
[ ] Include snapshot testing (if applicable).
[ ] Ensure tests pass without errors or warnings.
Testing Instructions
Clone the repository and set up the development environment by following the instructions in the README.
Find the component located at /components/main/empty-state.tsx
Create a new test file tests/components/empty-state.tsx
Implement the test cases as described in the acceptance criteria.
Run the test suite using npm run test inside the terminal
Ensure that all tests pass before submitting a PR.
We need to write Jest test cases for the EmptyState component. The goal of this issue is to ensure that the component functions as expected by testing its rendering, behavior, and edge cases.
Acceptance Criteria
Testing Instructions
Additional Resources Jest Documentation
To get you started, here is some example code with Jest, feel free to use these or the docs,