Posts by Vinícius Estevam • 1 point
1 post
-
0
votes1
answer80
viewsA: Testing a cron-job with JEST
One of the best ways to isolate the scope of a unit of code is to use dependency injection, so you can simulate different test cases without needing too much configuration, in your case it would…