Testing Flashcards
unit testing
testing individual components
integration testing
how components behave when working with other components
systems testing
how the entire application behaves, along with people using it AND the hardware
Jest
javascript platform written by Facebook, can be used with any JS program, not just React
npm test
commandline command for running tests
smoke test
a test that ensures the component renders
snapshot test
saved versions of the user interface rendered by the React component being tested
enzyme
testing library built to test react components
for event handlers
inspecting state
debugging
shallow
creates a wrapper instance the dev can interact with
wrapper
allows the dev to simulate actions on a node
jest.fn()
creates a Jest mock object, spy on an object