New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mochachai testing unit failing: "before all" hook in "Unit Tests" #39517
Comments
Thanks for reporting this @shartrooper. I extended the timeout to 5000 and they pass on both projects... |
Finally, Thanks a lot. Oddly enough, I've received zero feedback wherever I asked in regards of this issue. Now I have something to help sort out my testing unit coding issues too for my later projects. |
If you want, you can let us know if you come across this issue on other projects as well so we can fix them up 😄 |
Hi! @moT01, the thing is that if you do "npm run test" everything works fine, but when tests run automaticaly, when project is in a working state, then tests have the same issue. Could you check it too, please? Am I doing something wrong? Thank you! (I have .env file with NODE_ENV=test). The "Sudoku Solver" project has the same issue. If you need, I can send links on both my projects. |
Thanks for reporting this @shartrooper, and for catching the related issue with the automated test runner @randomSveta. @moT01's fixes were tested on these projects and merged into both boilerplates, so I'll close this for now. Could you let us know if you have any other issues with the tests timing out? |
@shartrooper, @moT01 , @scissorsneedfoodtoo, Thank you for your help! :) |
@randomSveta, thanks again for your input! It was really helpful. Please let us know if you run into any other issues with the projects. |
Describe your problem and how to reproduce it:
Hello.
After finishing the main scripts for both Sudoku Solver and American/British translator. I was unable to write test units that actually work for my code, and I mostly left the suite async configuration in the boilerplate testing files mostly intact.
So I went to their respective FCC challenge sample projects, checked their 1_unit-test.js code and run npm run test .
Then Just happens the same issue: Unit tests fail due to timeout and displays "before all" hook in "Unit Tests"
Add a Link to the page with the problem:
Sudoku Solver
American British translator
If possible, add a screenshot here (you can drag and drop, png, jpg, gif, etc. in this box):
The text was updated successfully, but these errors were encountered: