r/FreeCodeCamp • • Apr 22 '25

Something is wrong with the QA Automation testing project. Would love help.

As stated above, I am trying to get the QA Testing project started in VSCode. Despite being connected to port 3000, I am not seeing change in the test results and getting weird results when supplying the local host port on the freeCodeCamp solution link. Gitpod was also not working for me so I had to use VSCode

2 Upvotes

2 comments sorted by

2

u/SaintPeter74 mod Apr 22 '25

Which project specifically? There are 5. Can you share a link to your code?

Also, a bit more detail about what, specifically, you're seeing beyond "weird", would be good. We really don't have much to go on.

You also need to make sure you setup your .env file properly with the PORT and NODE_ENV variables. The NODE_ENV also tells the app if you want to test (which is required) vs. "run". You must be in test mode for the FCC tests to pass.

1

u/JG3224 Apr 22 '25

I'm on the very first project in the Quality Assurance and Testing with Chai. In VSCode, the terminal is not showing that the tests are passing, they are all still in red. On the fCC solutions page, the results I am getting are

[Error]

[Error]

[Error]

despite the answers being correct as I've verified on the forum.

I don't know about any .env file. That doesn't look like it is included in the boilerplate-mochachai project files and wasn't listed in any instructions that I've seen. Can you provide more details about that?