Cron jobs for Node.js applications that enables developers to execute functions or system commands on schedules defined using standard cron syntax
94
{
"context": "This criteria evaluates how well the engineer uses the cron package's time representation capabilities to analyze cron schedules. The focus is on proper usage of CronTime methods to convert schedules into multiple formats: string, JSON array, DateTime objects, and millisecond timeouts.",
"type": "weighted_checklist",
"checklist": [
{
"name": "CronTime instantiation",
"description": "Creates a CronTime object or CronJob with the provided cron expression to access time representation methods",
"max_score": 15
},
{
"name": "String representation",
"description": "Uses the toString() method on CronTime or accesses the string representation of the cron schedule",
"max_score": 20
},
{
"name": "JSON array format",
"description": "Uses the toJSON() method on CronTime to get the array representation of the parsed cron schedule",
"max_score": 20
},
{
"name": "Next execution time",
"description": "Uses sendAt() function, nextDate() method, or nextDates() method to calculate when the cron schedule will execute next, and converts it to ISO 8601 format",
"max_score": 25
},
{
"name": "Timeout calculation",
"description": "Uses the timeout() standalone function or getTimeout() method to calculate milliseconds until the next scheduled execution",
"max_score": 20
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-cronevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10