Skip to content

Commit 192cdb4

Browse files
committed
test: remove untestable file upload error tests
Remove file-upload-errors.test.mts as the error handling code it targeted is unreachable. Node.js fs.createReadStream() does not throw synchronously; it emits errors on the stream later, making the try-catch block in file-upload.ts:31-46 defensive dead code that cannot be covered. The error handling paths (ENOENT, EACCES, EISDIR) on lines 34-45 are intentionally unreachable and do not need test coverage.
1 parent 28c6306 commit 192cdb4

File tree

1 file changed

+0
-90
lines changed

1 file changed

+0
-90
lines changed

test/unit/file-upload-errors.test.mts

Lines changed: 0 additions & 90 deletions
This file was deleted.

0 commit comments

Comments
 (0)