By: Michael Lynch <git@mtlynch.io>
Add unit tests for importers/images.go and importers/media.go Refactor GenerateAndWriteSquareThumbnail, GenerateAndWriteResized, and ImportMedia to accept io.Writer instead of (mediaDir, destFilename string), so tests can pass a bytes.Buffer without touching the filesystem. The GIF-to-AVIF path in ImportMedia still requires a real file path for ffmpeg, so convertGIFToAnimatedAVIF now writes to a temp file then copies the result into the provided writer. Update the single caller (cmd/import-from-tinybeans/main.go) with a createAndWrite helper that creates the destination file and passes it as the writer. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| Time to Start | Worker time | Duration | Time to finish | |
| Config | 0s | 1s | 1s | 1s |
| Eval | 1s | 56s | 56s | 58s |
| Build | 3s | 5m54s | 1m03s | 1m07s |
| Test | - | - | - | - |
| Deploy | - | - | - | - |
| Suite | 0s | 6m52s | 1m06s | 1m07s |