(sizeBytes?: number)
| 231 | describe('chunkOpsByByteBudget', () => { |
| 232 | const MB = 1024 * 1024 |
| 233 | const addOp = (sizeBytes?: number) => ({ |
| 234 | type: 'add' as const, |
| 235 | extDoc: { |
| 236 | externalId: `e-${Math.random()}`, |
| 237 | title: 'f', |
| 238 | content: 'x', |
| 239 | contentHash: 'h', |
| 240 | mimeType: 'text/plain', |
| 241 | ...(sizeBytes != null ? { metadata: { fileSize: sizeBytes } } : {}), |
| 242 | }, |
| 243 | }) |
| 244 | const skipOp = (sizeBytes: number) => ({ |
| 245 | type: 'skip' as const, |
| 246 | extDoc: { |