In this video we will learn how to test UI Layer of our React.js application. In the first test we will verify if our navigation bar component displays correct text. Second test suite will verify logic of updating the score in our score counter component. We will check how to create lifecycle methods that will run before and after each test using Jest to prepare test environment. Also we will learn how to render components in the previously prepared container and then dispatch events to update view.
Keep coding!
Video is based on application created over here: • React JS - Material UI - Score Counter App
Github code for this video: https://github.com/codeforgeyt/score-...
Follow //CodefForgeYT on:
FB: / codeforgeyt
Twitter: / codeforgeyt
GitHub: https://github.com/codeforgeyt
Instagram: / codeforgeyt
コメント