17 lines
303 B
TypeScript
17 lines
303 B
TypeScript
|
import { describe, test } from 'vitest';
|
||
|
import { initCronjob } from '.';
|
||
|
|
||
|
describe.runIf(process.env.TEST_CRONJOB)('cronjob', () => {
|
||
|
const { dailyJob } = initCronjob();
|
||
|
|
||
|
test(
|
||
|
'run dailyjob',
|
||
|
async () => {
|
||
|
await dailyJob.trigger();
|
||
|
},
|
||
|
{
|
||
|
timeout: 30_000,
|
||
|
}
|
||
|
);
|
||
|
});
|