FAQ: Why Test? - Review

This community-built FAQ covers the “Review” exercise from the lesson “Why Test?”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Learn JavaScript Unit Testing

FAQs on the exercise Review

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

The ‘why test’ lesson gives a quick summary of running tests, but seems a little light on explanations as to how you actually set up and install such tests on your own projects.

It seems like this lesson uses something called ‘Chai’ which is related to something called ‘Mocha’, both of which are used for testing.

What do they both do?
How do you set them up to use them in a new project of your own?
How do you write tests when you’re starting from blank project pages?

It seems like only parts 4, 5, and 6 of the lesson have you interact with the tests temselves, and don’t take you through writing tests from first principles. Even those sections only have you cut and paste modifications, and not explain how to write a test.

These lessons really need to be packaged up for download so they can be done locally. You wouldn’t do this stuff the way its setup now, so why practice in a way that is not realistic? If the files were made to be downloaded so we can do this in an IDE then we can then learn how to do this in a real world scenario.

Exactly, This is the worst lesson i have learnt since starting the full stack development program

1 Like

Thanks for this suggestion.

They sure put a lot of work into building a site/test code to teach almost nothing!