prisca-c / mind-reader

Website that allows users to play a mind reader game. The game is simple, one user have a word given and the other person have to guess the word using other words.
GNU Affero General Public License v3.0
0 stars 1 forks source link

[FEAT/TEST] : Add first test for the React part #2

Open prisca-c opened 6 days ago

prisca-c commented 6 days ago

[FEAT/TEST] : Add first test to the React part

We have no test for now in the frontend (react) part of the application.

Description

What would be good is to add/config frontend's test environment since we dont even have any package handling this for now. At least it could be good to have a complete testing of component inside a page ( one of these game_session.tsx , profile.tsx or home.tsx)

Package to use need to be Japa with Japa's extension Browser & Playwright (for now).

(If you have any other relevant solution, feel free to share it in the conversation !)

App use React-i18next for internationalization, so you'll have to setup a provider for testing purpose, what would be good is to not use mock/stubbing, see Reacti18next's doc Link to the doc .