davidyell / Learning-React-MTG-Frontend

Magic the Gathering deck building front-end api written in Typescript with React
0 stars 0 forks source link

Implement some tests for the components #5

Open davidyell opened 2 years ago

davidyell commented 2 years ago

Try and learn how to correctly test a React component using Jest.

davidyell commented 2 years ago

https://reactjs.org/docs/testing.html

This seems like a good spot to start https://reactjs.org/docs/testing-recipes.html#rendering

Try rendering a whole card component with data and asserting it's displayed?