booster
booster copied to clipboard
Implement scheduled command's unit tests for local provider
Description
Scheduled commands docs Local provider docs
PR #1058 (Scheduled commands for local provider) is missing the unit tests so we need to implement them.
The scheduled command feature uses the node-schedule library to set up a specific time to trigger any desired command.
Additional information
Right now each provider (local, aws, azure...) is divided into 2 main folders. For this issue, we will focus only on the local provider ones:
- framework-provider-local-infrastructure: Where we define only infrastructure-related code. In this case, we add here our express server + node-schedule configuration.
- framework-provider-local: Here we define how we're going to read our schedule command to process it. We can see the original type here, that we implemented in the PR above.
We should implement tests for both the scheduled adapter and the infrastructure, in their respective framework-provider-local-infrastructure/test and framework-provider-local/test folders