Skip to content

fix: include jest types explicitly for TypeScript 6 - #191

Merged
devin-ai-integration[bot] merged 1 commit into
mainfrom
devin/1792714439-jest-types-ts6
Oct 23, 2026
Merged

devin-ai-integration[bot] merged 1 commit into
mainfrom
devin/1792714439-jest-types-ts6

Conversation

@dhruva-vapi

@dhruva-vapi dhruva-vapi commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

#190 (v3.0.1) moved the lockfile from TypeScript 5.9.2 to 6.0.3. TypeScript 6 stops auto-including @types/*, so on main every test suite now fails to compile before any test runs, and main's ci push run is red:

__tests__/vapi.test.ts:3:26 - error TS2304: Cannot find name 'jest'.
__tests__/vapi.test.ts:4:1 - error TS2593: Cannot find name 'beforeEach'.
Test Suites: 3 failed, 3 total

release.yml runs the tests too, so the v3.0.1 GitHub release can't be published until this lands.

Fix

jest.config.ts now passes types: ['jest', 'node'] to ts-jest. This only changes how ts-jest compiles the tests. The SDK build (tsc) and the emitted dist/*.d.ts are identical to before.

Verification

Rebased onto current main (ecd1d6e, package 3.0.1, TypeScript 6.0.3). The diff vs main is jest.config.ts only, and package.json is not touched.

npm ci && npm run build && npm test -- --runInBand → 73/73 pass. Also verified on the pre-#190 lockfile (TypeScript 5.9.2) → 73/73 pass.

Link to Devin session: https://app.devin.ai/sessions/f0c8f585b41d4cbaa0459bfc8d22e211
Open in Devin Desktop: https://app.devin.ai/desktop/session/f0c8f585b41d4cbaa0459bfc8d22e211?variant=devin
Requested by: @dhruva-vapi

@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/1792714439-jest-types-ts6 branch from 196cc67 to f721e88 Compare October 23, 2026 00:17
@devin-ai-integration
devin-ai-integration Bot merged commit a6f57a2 into main Oct 23, 2026
4 checks passed
@devin-ai-integration
devin-ai-integration Bot deleted the devin/1792714439-jest-types-ts6 branch October 23, 2026 00:42
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.

2 participants