tianji/src/server/cronjob/index.spec.ts

17 lines
303 B
TypeScript
Raw Normal View History

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,
}
);
});