Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/content/docs/workers/testing/miniflare/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ const res = await mf.dispatchFetch("http://localhost:8787/", {
});
console.log(await res.text()); // Hello Miniflare!

const worker = await mf.getWorker();

const scheduledResult = await worker.scheduled({
cron: "* * * * *",
});
Expand Down Expand Up @@ -367,6 +369,8 @@ const res = await mf.dispatchFetch("http://localhost:8787/", {
});
const text = await res.text();

const worker = await mf.getWorker();

// Dispatch "scheduled" event to worker
const scheduledResult = await worker.scheduled({ cron: "30 * * * *" })

Expand Down
Loading