Tell us what’s happening:
I run the solution directly on the feecodeCamp page but the tests always timeout.
On the contrary on the replit page the same code is running ok and the corresponding tests pass.
The QA tests part of this course appears to be fundamentally broken. It is possible to pass the tests but the repl usually crashes when QA tests run and makes it extremely difficult to do so. You can try the following:
Complete the code for the current challenge
STOP your repl
Submit the solution link to FCC
This will wake the repl and hopefully allow the tests to pass before the repl crashes again. If the tests still timeout (before the repl crashes), you can try starting the repl and submitting the solution whilst the repl is running but before it has had time to crash. Sometimes this works if you time it just right.
In later challenges in the QA certification, when you are working on non-QA test code and don’t require the tests to run in order to pass the challenge, you can just stop the QA tests from running altogether by using an environment variable or commenting out the relevant parts of the code which start the tests running.
I hope some FCC staff might take note of this issue and try to do something about it!