react-snuggle
react-snuggle copied to clipboard
Missing tests
Currently, we don't have any test and I really want to ensure that everything keeps working fine on the future changes and avoid bugs in the application. However, It's a great opportunity to learn and improve the skills to build tests in React.
What are we expecting?
- [x] Choose the best suit test (Jest, chai, whatever you prefer);
- [ ] Split the code into smaller parts;
- [ ] 100% coverage or close that;
- [ ] Improv the Flow type;
- [ ] Don't change and don't remove any feature;
Cheers 🍻
Will take care of this!
I've chosen Jest + react-testing-library for testing.
I would split the rendering of the grid in a single component and the rendering of each tile in a component.
Was wondering what edge cases are extremely important with this library to create coverage with meaningful tests.
Thanks, @takethefake, the setup is almost done. I think we can to keep this issue open and improve the tests.
To the next contributors, there is a todo list at the top of the discussion and any doubt or needs help, just message here :)