Skip to content

tests: add unit tests for GeminiVideoProvider#3065

Merged
Salazareo merged 1 commit into
mainfrom
DS/2992-tests-gemini-video-provider
May 10, 2026
Merged

tests: add unit tests for GeminiVideoProvider#3065
Salazareo merged 1 commit into
mainfrom
DS/2992-tests-gemini-video-provider

Conversation

@Salazareo
Copy link
Copy Markdown
Member

Adds offline GeminiVideoProvider.test.ts covering parameter mapping (size → aspectRatio/resolution, isHighRes forcing 8s, reference_images clamping to 3 with image/lastFrame suppression, data-URL parsing, negative_prompt), polling the long-running operation (under fake timers), tier-aware metering (default / :1080p / :4k suffixes), content-filter handling, and error paths. Mocks @google/genai at the module boundary against a real PuterServer + live MeteringService.

Closes #2992

Adds offline GeminiVideoProvider.test.ts covering parameter mapping
(size → aspectRatio/resolution, isHighRes forcing 8s, reference_images
clamping to 3 with image/lastFrame suppression, data-URL parsing,
negative_prompt), polling the long-running operation (under fake
timers), tier-aware metering (default / :1080p / :4k suffixes),
content-filter handling, and error paths. Mocks @google/genai at the
module boundary against a real PuterServer + live MeteringService.

Closes #2992

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 57.35%
⬆️ +0.54%
10187 / 17760
🔵 Statements 55.97%
⬆️ +0.53%
10730 / 19170
🔵 Functions 58.67%
⬆️ +0.49%
1768 / 3013
🔵 Branches 45.07%
⬆️ +0.68%
6385 / 14166
File CoverageNo changed files found.
Generated in workflow #127 for commit d2e4ace by the Vitest Coverage Report Action

@Salazareo Salazareo merged commit 4d53faf into main May 10, 2026
4 checks passed
@Salazareo Salazareo deleted the DS/2992-tests-gemini-video-provider branch May 10, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Tests] Add unit tests for GeminiVideoProvider

1 participant