/** * @file the tests' main module: the real worker, plus a DiigoCache on a * fixed clock (bound as CLOCKED_DO in wrangler.tests.jsonc), so tests can * interpose time through the constructor. */ import { DiigoCache } from "../src/cache.js"; import type { CacheEnv } from "../src/cache.js"; export * from "../src/index.js"; export { default } from "../src/index.js"; /** 2026-10-07T12:00:00Z */ export const FIXED_NOW = Date.UTC(2026, 9, 7, 12, 0, 0); export class FixedClockCache extends DiigoCache { constructor(ctx: DurableObjectState, env: CacheEnv) { super(ctx, env, { now: () => FIXED_NOW, sleep: async () => {} }); } }