FAQ: Why Test? - The Test Suite

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

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 1st instruction on this lesson says “All bugs have been fixed!” and prompts me to confirm by running npm test but when I do so the tests fail. So, I can’t progress any further…

I’ve tried in Chrome and Firefox but get the same result in both.

UPDATE: I’ve also tried on two different machines (Windows & Ubuntu) but same issue so it doesn’t seem like it’s a problem on my side unless I’m missing something obvious.

5 Likes

I’m having the same problem, so either we’re both making the same mistake, or it’s a problem on their end. I’ve submitted a bug report, so hopefully it will get fixed soon.

2 Likes

Cool, thanks for confirming. I also submitted a bug. Fingers crossed.

1 Like

After taking a closer look, it seems like the first few errors it gives aren’t actually part of the testing suite:

Handlebars: Access has been denied to resolve the property "name" because it is not an "own pr
operty" of its parent.                                                                        
You can add a runtime option to disable the check or this warning:                            
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-a
ccess for details                                                                             
Handlebars: Access has been denied to resolve the property "fillings" because it is not an "ow
n property" of its parent.                                                                    
You can add a runtime option to disable the check or this warning:                            
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-a
ccess for details                                                                             
Handlebars: Access has been denied to resolve the property "size" because it is not an "own pr
operty" of its parent.                                                                        
You can add a runtime option to disable the check or this warning:                            
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-a
ccess for details                                                                             
Handlebars: Access has been denied to resolve the property "cakeType" because it is not an "ow
n property" of its parent.                                                                    
You can add a runtime option to disable the check or this warning:                            
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-a
ccess for details

Not sure if that has something to do with it or not, but maybe it will help whoever has to troubleshoot the issue.

1 Like

FYI seems like it’s fixed. Tests now passing.

1 Like

When I try to run npm test in step 3, it always fails, even though I have changed line 9 to “starts with an empty order” as directed in step 2.

4 Likes

This whole lesson does not work and this is the error I keep getting. Looking at previous replies it seems this has been an issue for many many months. I recommend that Codecademy should fix their buggy lessons rather than release new content.

I am getting the same error. I submitted a bug report a couple of days ago. Hopefully they fix it soon.

I’m here to report the same issue with step one as well. I just logged a bug. Hopefully this resolves quickly.

I have the same error, I’m so disappointed this is the second course from CodeCademy and the terminal gives errors and you can not proceed further.

Same for me, hopefully they fix this soon!

same. :frowning:
would love to know when this is fixed

I came looking for the answer to resolve the same issue. I have flagged it too as a bug.

Today I tried again and looks like it was fixed.

1 Like

Step 3 where I " Check your work once you see starts with an empty order in your test output." is still not working for me, unfortunately. I don’t know how to continue :confused:

Did you ever figured out how to fix this problem?
Regards!

I had to highlight the text to pass this error.
I am attaching a screenshot.

1 Like

In Step 3:
Just write ‘empty order’ and not ‘starts with an empty order’
Hope this helps!

3 Likes

Thanks ! Worked for me !

1 Like