Skip to content

tests: add unit tests for VideoGenerationDriver#3062

Merged
Salazareo merged 1 commit into
mainfrom
DS/2991-tests-video-generation-driver
May 10, 2026
Merged

tests: add unit tests for VideoGenerationDriver#3062
Salazareo merged 1 commit into
mainfrom
DS/2991-tests-video-generation-driver

Conversation

@Salazareo
Copy link
Copy Markdown
Member

Adds offline VideoGenerationDriver.test.ts covering provider selection/dispatch (args.provider, model-id resolution across the unified catalog, Context.driverName fallback), parameter validation (seconds + dimension snapping to model.durationSeconds / model.dimensions, string coercion), error mapping (provider HttpErrors pass through, SDK errors don't bill), and metering propagation (driver-level dispatch reaches the provider's incrementUsage). Mocks each provider's SDK boundary against a real PuterServer wired with credentials for every video provider.

Closes #2991

Adds offline VideoGenerationDriver.test.ts covering provider
selection/dispatch (args.provider, model-id resolution across the
unified catalog, Context.driverName fallback), parameter validation
(seconds + dimension snapping to model.durationSeconds /
model.dimensions, string coercion), error mapping (provider
HttpErrors pass through, SDK errors don't bill), and metering
propagation (driver-level dispatch reaches the provider's
incrementUsage). Mocks each provider's SDK boundary against a real
PuterServer wired with credentials for every video provider.

Closes #2991

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 58.44%
⬆️ +1.63%
10380 / 17760
🔵 Statements 57.01%
⬆️ +1.57%
10930 / 19170
🔵 Functions 59.64%
⬆️ +1.46%
1797 / 3013
🔵 Branches 46.17%
⬆️ +1.78%
6541 / 14166
File CoverageNo changed files found.
Generated in workflow #124 for commit b3d722d by the Vitest Coverage Report Action

@Salazareo Salazareo merged commit 41e0049 into main May 10, 2026
4 checks passed
@Salazareo Salazareo deleted the DS/2991-tests-video-generation-driver 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 VideoGenerationDriver

1 participant