A class that can be used to more easily test cronjobs. You'll generally use this in testing an application to simply verify that the application correctly registers the cronjobs you expect it to. This will not test that the cronjobs actually run, as that is expected to be fully tested by the cron package that this system uses.

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

_jobs: (CronjobInterface & {
    killed: boolean;
})[] = []

Accessors

Methods

  • Kill the cronjob identified by name, or all cronjobs if name not specified

    Parameters

    • Optional name: string

    Returns void

Generated using TypeDoc