Quality Assurance and Testing with Chai - Test if a Variable or Function is Defined

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

I use Replit to complete the Quality Assurance and Testing with Chai course, but my tests keep timing out. On Replit everything works fine, the tests pass.

Your project link(s)

solution: boilerplate-mochachai (1) - Replit

Your browser information:

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

Challenge: Quality Assurance and Testing with Chai - Test if a Variable or Function is Defined

Link to the challenge:

Add this to the bottom of your 2_functional-tests.js file:

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

The QA tests crash your server on replit. This code restarts the server and prevents the FCC tests from timing out.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.