The Issue
We currently do not have a unit testing framework set up for the React frontend, making it difficult for contributors to write tests for utility functions or components.
The Solution
Set up a modern testing framework (preferably Vitest with React Testing Library, or Jest) in the client/ directory.
Tasks:
- Install the necessary dev dependencies (
vitest, @testing-library/react, etc.).
- Create the configuration file (e.g.,
vitest.config.ts).
- Add a
"test": "vitest" script to client/package.json.
- Write a single, simple dummy test (e.g.,
client/src/__tests__/sample.test.ts) that asserts expect(1 + 1).toBe(2) to prove the test runner works.
Where to look
If you want to tackle this issue, comment below and I will assign it to you!
The Issue
We currently do not have a unit testing framework set up for the React frontend, making it difficult for contributors to write tests for utility functions or components.
The Solution
Set up a modern testing framework (preferably
VitestwithReact Testing Library, orJest) in theclient/directory.Tasks:
vitest,@testing-library/react, etc.).vitest.config.ts)."test": "vitest"script toclient/package.json.client/src/__tests__/sample.test.ts) that assertsexpect(1 + 1).toBe(2)to prove the test runner works.Where to look
If you want to tackle this issue, comment below and I will assign it to you!