Https://forum.adonisjs.com/t/how-to-mock-date-object-in-adonisjs-test/4356

1 Like

I found an easy way to do it here:

https://untangled.io/how-to-mock-date-now-to-keep-date-based-unit-tests-predictable/