26slides React Complete Guide Code 26 Testing
26slides React Complete Guide Code 26 Testing
Very important: You see what You test the individual building
your users will see blocks of your app
The most common / Also important, but focus Important but can also be
important kind of test on unit tests in most cases done manually (partially)
What To Test
What? How?
We need a tool for running our tests and We need a tool for “simulating” (rendering)
asserting the results our React app / components
Both tools are already set up for you when using create-react-app
Writing Tests – The Three “A”s
Arrange Set up the test data, test conditions and test environment