CollActionteam / collaction_api

The API powering the Collaction Client Applications
GNU Affero General Public License v3.0
7 stars 0 forks source link

Unit Tests for SchedulerService #174

Closed matthias-Che closed 1 year ago

matthias-Che commented 1 year ago

I've started writing some tests for SchedulerService, however I am unsure how to stop crons.

MichaelSlatteryDev commented 1 year ago

To stop the crons you just need to call stopAllCrons in the afterAll function. It seems the tests are failing because of some imports at the moment?

matthias-Che commented 1 year ago

SchedulerService got removed. No need to create tests for this correct?

https://github.com/CollActionteam/collaction_api/pull/169

Xazin commented 1 year ago

Yes, sadly NestJS Schedule was causing some issues, and I couldn't find a solution for it.

It was blocking production launch, therefore I had to take it out in favor of resolving statuses just-in-time.