(rootDir: string)
| 17 | } |
| 18 | |
| 19 | function createSchedulerContext(rootDir: string) { |
| 20 | return { |
| 21 | agent: { |
| 22 | handleCommand: async () => ({ success: true }), |
| 23 | handleMessage: async () => ({ errorMessage: undefined }), |
| 24 | }, |
| 25 | server: {}, |
| 26 | app: {}, |
| 27 | rootDir, |
| 28 | lifecycle: {}, |
| 29 | notify: async () => {}, |
| 30 | } as any; |
| 31 | } |
| 32 | |
| 33 | test("scheduler loads jobs from job.json on startup", async () => { |
| 34 | await withTempDir(async (dir) => { |