Hello Readers, CoolMonkTechie heartily welcomes you in A Short Note Series.
In this note series, we will understand about the difference between unit testing, integration testing and End to end testing in React Testing Framework.
So Let’s begin.
Unit Testing is an isolated part of your app, usually done in combination with shallow rendering.
Example: A component renders with the default props.
Integration Testing if different parts work or integrate with each other. Usually done with mounting or rendering a component.
Example: Test if a child component can update context state in a parent.
End To End Testing
It stands for end to end (e to e testing) . Usually a multi step test combining multiple unit and integration tests into one big test. Usually very little is mocked or stubbed. Tests are done in a simulated browser, there may or may not be a UI while the test is running.
Example: Testing an entire authentication flow.
In this note series, We understood about the difference between unit testing, integration testing and End to end testing in React Testing Framework.
Thanks for reading ! I hope you enjoyed and learned about Unit Testing Vs Integration Testing Vs End to end Testing Concepts in React Testing Framework. Reading is one thing, but the only way to master it is to do it yourself.
Please follow and subscribe us on this blog and and support us in any way possible. Also like and share the article with others for spread valuable knowledge.
If you have any comments, questions, or think I missed something, feel free to leave them below in the comment box.
Thanks again Reading. HAPPY READING !!😊😊😊