FAQ: Why Test? - Regression

This community-built FAQ covers the “Regression” 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 Regression

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!

why do we need to stop the app before to enter the command “npm test”

1 Like

Did you try it to see what would happen?
JS Node won’t allow you to run the test function while it’s ‘Listening on port 4001’ in start mode.
Therefore, we need to stop it and then it will allow us to run ‘npm test’.

I don’t have a very scientific explanation for this, but computers are dumb: they can’t always multi-task and they need to be told to stop a task to begin another task on some occasions. At least, this seems to be the case with Node.

I cannot get the console to stop running test ( I am stuck at point number 2). I am on a mac so ctrl + C is not working. I’ve read this can be replaced by command + . (dot), but this i not working either. How do you stop the terminal from running tests on mac?

1 Like

This is an old post, but I’ll answer this question since I had the same problem: ctrl-C did not close the bash window on my Mac. I fixed the problem by clicking on the X to close bash, and then I clicked on the + to restart bash. This resolved the issue and allowed me to advance.

1 Like

How these images: “shape_1.svg” and “shape_2.svg” are linked into the HTML document?

I can’t find a “img” marker with their links (unlike the bug.svg).

It’s ok, just checked the CSS and found it

I was having the same problem. Glad to see the solution of it