Skip to content

chore(deps-dev): bump typescript from 5.9.3 to 6.0.3 in the typescript group across 1 directory#344

Merged
allenhutchison merged 3 commits into
mainfrom
dependabot/npm_and_yarn/typescript-3b9b15ff01
Apr 29, 2026
Merged

chore(deps-dev): bump typescript from 5.9.3 to 6.0.3 in the typescript group across 1 directory#344
allenhutchison merged 3 commits into
mainfrom
dependabot/npm_and_yarn/typescript-3b9b15ff01

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 23, 2026

Bumps the typescript group with 1 update in the / directory: typescript.

Updates typescript from 5.9.3 to 6.0.3

Release notes

Sourced from typescript's releases.

TypeScript 6.0.3

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0 Beta

For release notes, check out the release announcement.

Downloads are available on:

Commits
  • 050880c Bump version to 6.0.3 and LKG
  • eeae9dd 🤖 Pick PR #63401 (Also check package name validity in...) into release-6.0 (#...
  • ad1c695 🤖 Pick PR #63368 (Harden ATA package name filtering) into release-6.0 (#63372)
  • 0725fb4 🤖 Pick PR #63310 (Mark class property initializers as...) into release-6.0 (#...
  • 607a22a Bump version to 6.0.2 and LKG
  • 9e72ab7 🤖 Pick PR #63239 (Fix missing lib files in reused pro...) into release-6.0 (#...
  • 35ff23d 🤖 Pick PR #63163 (Port anyFunctionType subtype fix an...) into release-6.0 (#...
  • e175b69 Bump version to 6.0.1-rc and LKG
  • af4caac Update LKG
  • 8efd7e8 Merge remote-tracking branch 'origin/main' into release-6.0
  • Additional commits viewable in compare view

Bumps the typescript group with 1 update in the / directory: [typescript](https://github.com/microsoft/TypeScript).


Updates `typescript` from 5.9.3 to 6.0.3
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.9.3...v6.0.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 6.0.3
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: typescript
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps-dev): bump typescript from 5.9.3 to 6.0.3 in the typescript group chore(deps-dev): bump typescript from 5.9.3 to 6.0.3 in the typescript group across 1 directory Apr 24, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-3b9b15ff01 branch from 93b1751 to 6066798 Compare April 24, 2026 23:40
TS 6 stops auto-loading @types/jest's ambient globals under this
project's tsconfig (verified via --traceResolution: @jest/globals
resolves but @types/jest is never visited). The bare afterAll on
setup.ts was the only non-test file relying on those ambients.

Importing afterAll from @jest/globals matches the existing jest
import on the same line and works on TS 5 and TS 6.
@allenhutchison
Copy link
Copy Markdown
Contributor

Pushed a follow-up commit on top of the bump (9c8c664) to fix the verify failure.

What broke: TS 6 stops auto-loading @types/jest's ambient globals under this project's tsconfig (confirmed via --traceResolution: @jest/globals resolves but @types/jest is never visited). That left afterAll undeclared in workspace-server/src/__tests__/setup.ts:30 — the only non-test file relying on those ambients.

Fix: Add afterAll to the existing @jest/globals import on line 9. Matches the file's pattern, works on both TS 5 and TS 6, no other files affected.

CI should go green on the next run.

The previous fix only addressed the verify (tsc) job, which excludes
.test.ts files. ts-jest compiles test files at runtime under its own
inline tsconfig and was hitting the same TS 6 ambient-globals
regression — every test file's bare jest/describe/it/expect went
undeclared.

Explicitly listing types: ['jest', 'node'] forces @types/jest's
ambient declarations back into ts-jest's scope, restoring the bare
globals across all test files without per-file imports.

Verified locally: full suite passes (466 tests, 27 suites).
@allenhutchison
Copy link
Copy Markdown
Contributor

Second follow-up commit (5e3adda) — my first fix only addressed verify (tsc), which excludes .test.ts files. The actual test runner (ts-jest) compiles those at runtime under its own inline tsconfig and hits the same TS 6 ambient-globals regression, so every test file's bare jest/describe/it/expect went undeclared.

Fix: explicitly list types: ['jest', 'node'] in the inline ts-jest tsconfig in jest.config.js. That forces @types/jest's ambient declarations back into scope without per-file imports.

Verified locally: npx jest466 tests, 27 suites, all green.

@allenhutchison allenhutchison merged commit c0a63f4 into main Apr 29, 2026
14 checks passed
@allenhutchison allenhutchison deleted the dependabot/npm_and_yarn/typescript-3b9b15ff01 branch April 29, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant