Skip to content

test: add unit tests for fileInput driver utility#3007

Merged
jelveh merged 2 commits intomainfrom
DS/2957
May 8, 2026
Merged

test: add unit tests for fileInput driver utility#3007
jelveh merged 2 commits intomainfrom
DS/2957

Conversation

@Salazareo
Copy link
Copy Markdown
Member

Covers loadFileInput (validation, data-URL decoding, FS-path resolution, maxBytes enforcement, ACL gating) and inferFilenameFromUrlOrPath. Stubs stores/fsService with prefab data so tests don't require a real server.

Closes #2957

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 31.61%
⬆️ +0.64%
5555 / 17572
🔵 Statements 30.83%
⬆️ +0.61%
5877 / 19062
🔵 Functions 33.31%
⬆️ +0.57%
995 / 2987
🔵 Branches 20.57%
⬆️ +0.72%
2887 / 14030
File CoverageNo changed files found.
Generated in workflow #58 for commit ed73248 by the Vitest Coverage Report Action

Covers `loadFileInput` (validation, data-URL decoding, FS-path resolution,
maxBytes enforcement, ACL gating) and `inferFilenameFromUrlOrPath`. Stubs
stores/fsService with prefab data so tests don't require a real server.

Closes #2957
@jelveh jelveh merged commit cc799e0 into main May 8, 2026
4 checks passed
@jelveh jelveh deleted the DS/2957 branch May 8, 2026 04:45
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 fileInput driver utility

2 participants