(videoPath: string, overrides: Partial<CacheKeyInput> = {})
| 17 | } from "./extractionCache.js"; |
| 18 | |
| 19 | const keyFor = (videoPath: string, overrides: Partial<CacheKeyInput> = {}): CacheKeyInput => { |
| 20 | const stat = readKeyStat(videoPath); |
| 21 | if (!stat) throw new Error(`keyFor fixture missing on disk: ${videoPath}`); |
| 22 | return { |
| 23 | videoPath, |
| 24 | mtimeMs: stat.mtimeMs, |
| 25 | size: stat.size, |
| 26 | mediaStart: 0, |
| 27 | duration: 3, |
| 28 | fps: 30, |
| 29 | format: "jpg", |
| 30 | ...overrides, |
| 31 | }; |
| 32 | }; |
| 33 | |
| 34 | describe("extractionCache constants", () => { |
| 35 | it("exposes the v2 schema prefix", () => { |