Stay organized

Remember, tests are the first consumer of your application. The best and most accurate documentation you can provide is a thorough and well-maintained set of tests. Within your test suite, create folders, nested classes, or utilize features of your test framework to make your tests more readable. Remember, if you do encounter a test failure at a later date, a descriptive test name and proper assertion will go a long way in describing how the result came to be.

Use Describe to better organize your JavaScript tests. Nest multiple levels by using more than one Describe within your tests.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.185.42