Skip to content

test: add unit tests for fileInput driver utility - #3007

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

test: add unit tests for fileInput driver utility#3007
jelveh merged 2 commits into
mainfrom
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

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor

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
junphine pushed a commit to junphine/puter that referenced this pull request May 21, 2026
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 HeyPuter#2957
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