Skip to content

fix(mock-doc): add File and Blob constructors#6734

Open
xonaib wants to merge 1 commit into
stenciljs:mainfrom
xonaib:fix/mock-file-api
Open

fix(mock-doc): add File and Blob constructors#6734
xonaib wants to merge 1 commit into
stenciljs:mainfrom
xonaib:fix/mock-file-api

Conversation

@xonaib

@xonaib xonaib commented May 23, 2026

Copy link
Copy Markdown

Fixes #3539

What changed

  • Adds mock Blob and File constructors to Stencil's mock DOM globals.
  • Exports the constructors from @stencil/core/mock-doc.
  • Adds focused coverage for Blob and File in the global mock-doc tests.

Verification

  • npm run tsc.prod
  • node --experimental-vm-modules .\node_modules\jest\bin\jest.js src/mock-doc/test/global.spec.ts --runInBand
  • npx eslint src/mock-doc/blob.ts src/mock-doc/file.ts src/mock-doc/global.ts src/mock-doc/index.ts src/mock-doc/test/global.spec.ts

@xonaib xonaib requested a review from a team as a code owner May 23, 2026 11:08
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.

ReferenceError: File is not defined on Unit Test

1 participant