React tutorial from https://reactjs.org/tutorial/tutorial.html
Just following the tutorial and writing Cypress component tests.
The example code taken from https://codepen.io/gaearon/pen/LyyXgK
Test | Description |
---|---|
square-spec.js | Testing individual square |
tic-tac-toe-spec.js | Testing the entire game |
For larger Tic-Tac-Toe example with mocking, read the blog post Tic-Tac-Toe Component Tests