Skip to content

Commit c0a63f4

Browse files
chore(deps-dev): bump typescript from 5.9.3 to 6.0.3 in the typescript group across 1 directory (#344)
* chore(deps-dev): bump typescript 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> * fix(test-setup): import afterAll explicitly for TS 6 compatibility 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. * fix(test): pin ts-jest to @types/jest+@types/node for TS 6 compat 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). --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Allen Hutchison <allen@hutchison.org>
1 parent 11829e2 commit c0a63f4

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ module.exports = {
1515
{
1616
tsconfig: {
1717
strict: false,
18+
types: ['jest', 'node'],
1819
},
1920
},
2021
],

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"prettier": "^3.8.3",
6060
"ts-jest": "^29.4.9",
6161
"ts-node": "^10.9.2",
62-
"typescript": "^5.9.2",
62+
"typescript": "^6.0.3",
6363
"vite": "^8.0.9",
6464
"vitepress": "^1.6.4",
6565
"vue": "^3.5.33"

workspace-server/src/__tests__/setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// Test setup file for Jest
88
// This file runs before all tests
9-
import { jest } from '@jest/globals';
9+
import { afterAll, jest } from '@jest/globals';
1010

1111
// Mock console methods to reduce noise in test output
1212
global.console = {

0 commit comments

Comments
 (0)