MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / createSchedulerContext

Function createSchedulerContext

tests/scheduler.test.ts:19–31  ·  view source on GitHub ↗
(rootDir: string)

Source from the content-addressed store, hash-verified

17}
18
19function 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
33test("scheduler loads jobs from job.json on startup", async () => {
34 await withTempDir(async (dir) => {

Callers 1

scheduler.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected