Skip to content

fix: reference chai types in every d.ts chunk - #11618

Merged
sheremet-va merged 1 commit into
mainfrom
fix/chai-types-reference
Oct 16, 2026
Merged

sheremet-va merged 1 commit into
mainfrom
fix/chai-types-reference

Conversation

@sheremet-va

Copy link
Copy Markdown
Member

Related to #11144

vitest/runtime types use the global Chai namespace but never load @types/chai. rollup-plugin-dts drops reference directives from .ts sources, so the dts build now adds /// <reference types="chai" /> to every chunk that uses Chai. The new test/e2e/dts/chai-types fixture checks this with TypeScript 5 and 7.

@netlify

netlify Bot commented Oct 16, 2026

Copy link
Copy Markdown

✅ Deploy Preview for vitest-dev ready!

Name Link
🔨 Latest commit bca7be6
🔍 Latest deploy log https://app.netlify.com/projects/vitest-dev/deploys/6ad224a1a8f3b2fc5d986bc1
😎 Deploy Preview https://deploy-preview-11618--vitest-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@sheremet-va
sheremet-va merged commit fb15015 into main Oct 16, 2026
31 checks passed
@sheremet-va
sheremet-va deleted the fix/chai-types-reference branch October 16, 2026 16:17
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant