SOFTENG310-Team4 / SMARTJ

SMARTJ is a web application designed to help active job seekers practice their interview skills and find available jobs in their field of study. Developed by Team 4 as part of the SOFTENG 310 course at the University of Auckland.
MIT License
0 stars 11 forks source link

[FEAT] Add Unit Tests for App.js #60

Closed tyin363 closed 2 months ago

tyin363 commented 2 months ago

Summary

We need to write comprehensive unit tests for the App.js component using Jest and React Testing Library to ensure that it functions correctly and reliably.

Motivation

Adding unit tests for App.js will help improve the code’s reliability, catch bugs early, allow for easier refactoring, and provide documentation for the component's behavior. This will also help ensure that the component’s functionality remains intact as the codebase evolves.

Detailed Description

We propose adding unit tests for the App.js component to verify its rendering, user interactions, and state changes. This will involve writing tests to ensure App.js functions correctly under different scenarios, using mock data where necessary, and aiming for at least 70% test coverage to maintain code reliability.

Possible Alternatives

While unit testing is our primary focus, other testing strategies, such as integration testing, could be considered in the future. However, for now, we will stick with Jest and React Testing Library for unit testing.

Additional Context

N/A

Implementation

N/A