Quality Assurance Projects - Sudoku Solver

Tell us what’s happening:

I’ve completed my project locally and all tests pass, including all 12 unit tests.

However, when uploading to the FreeCodeCamp platform, I encounter an error on: 15. All 12 unit tests are complete and passing. → ‘[Error: At least one assertion per test: expected +0 to be at least 1]’.
Despite having assertions in each of the 12 tests, this issue persists on FCC. What could be causing this discrepancy?

GitHub: sudoku_solver/tests/1_unit-tests.js at main · mariasanp/sudoku_solver · GitHub

###Your project link(s)

solution: http://localhost:3000

Your browser information:

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

Challenge Information:

Quality Assurance Projects - Sudoku Solver

It is caused by the async/await you have in 1_unit-tests.js, also the solver methods are not returning promises.

If you look at the last two API response, you can see all the assertions arrays for the unit tests are empty.

1 Like