Skip to content

fix backend jest file type mock - #1039

Open
Tomeshwari-02 wants to merge 1 commit into
souma9830:masterfrom
Tomeshwari-02:codex/fix-backend-jest-esm
Open

fix backend jest file type mock#1039
Tomeshwari-02 wants to merge 1 commit into
souma9830:masterfrom
Tomeshwari-02:codex/fix-backend-jest-esm

Conversation

@Tomeshwari-02

Copy link
Copy Markdown

Summary

  • map file-type to a Jest-only mock for backend app smoke tests
  • allowlist the file-type dependency family for Jest transforms

Why

The backend smoke tests do not exercise upload MIME sniffing, but importing the upload route forced Jest to parse the ESM-only file-type package and fail before any tests ran.

Fixes #1031

Validation

  • npm test from backend now progresses past the previous file-type syntax error
  • The current base still stops on the separate startup issue fixed in fix backend startup imports #1038

@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the souma9830's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Tomeshwari-02 Tomeshwari-02 changed the title [codex] fix backend jest file type mock fix backend jest file type mock Jul 1, 2026
@Tomeshwari-02
Tomeshwari-02 marked this pull request as ready for review July 1, 2026 17:40
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.

bug: backend Jest suite fails on ESM-only file-type dependency

1 participant