Information Security Projects - Stock Price Checker

Tell us what’s happening:

Hello everybody, i have a problem when i dont add NODE_ENV with value test inb the Secrets menu in Replit, i pass all of the test except the last one:
**


**
Failed:All 5 functional tests are complete and passing.
When i add NODE_ENV and value test in the Secrets menu the tests that i pass are only:

  • You can provide your own project, not the example URL.
  • You can also pass along a like field as true (boolean) to have your like added to the stock(s). Only 1 like per IP should be accepted.

Your project link(s)

solution: boilerplate-project-stockchecker - Replit

Your browser information:

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

Challenge Information:

Information Security Projects - Stock Price Checker

Add .keepOpen() after all the chai.request(server) calls.

chai
  .request(server)
  .keepOpen()
  // other methods

We should probably add a note to the challenge about Replit and the functional tests.


If I make that change it passes for me. For some reason, it did fail on the first run but then it passed all the other times. It might just have been Replit.