Quality Assurance and Testing with Chai - Learn How JavaScript Assertions Work

Tell us what’s happening:
Describe your issue in detail here.

Learn How JavaScript Assertions Work

It don’t access to my solution link because it has errors. I can’t find the errors from code.
link : - https://boilerplate-mochachai-2.tharushainduwa1.repl.co
Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36

Challenge: Quality Assurance and Testing with Chai - Learn How JavaScript Assertions Work

Link to the challenge:

When you need help, please give us a link to your code (not the live project link): boilerplate-mochachai (2) - Replit

However, there is nothing wrong with your code.
There’s a problem with the QA course because the tests crash your server in repl, which causes the challenge to fail in FCC.

The easiest fix for this is to add the following code to the bottom of your functional-tests.js file (i.e. the other tests file):

after(function() {
  chai.request(server)
  .get('/')
});

This restarts the server after it crashes.

1 Like