From 8d8f02a2d6052144167b192de292dc0c22eda1b7 Mon Sep 17 00:00:00 2001 From: Mariusz Peplinski Date: Tue, 25 Aug 2026 13:49:18 +0200 Subject: [PATCH] fix(ci): bump TypeScript to 5.x and the jest toolchain to 29 so the build compiles again The Build workflow runs `npm install` (package-lock.json is gitignored), so every run re-resolves transitive dependencies from scratch. `@types/node` has since floated to 26.x, whose .d.ts files use syntax TypeScript 4.9 cannot parse, and ts-loader fails with 50 TS1005/TS1109/TS1128 errors in @types/node/ffi.d.ts. Bumping typescript to ^5.9.3 fixes it, which in turn requires jest/ts-jest/@types/jest 29 because ts-jest 27 peer-caps typescript at <5.0. --- jest.config.js | 2 +- package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/jest.config.js b/jest.config.js index b182d4d..15cdba1 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,4 +1,4 @@ -/** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */ +/** @type {import('ts-jest').JestConfigWithTsJest} */ module.exports = { preset: "ts-jest", testEnvironment: "node", diff --git a/package.json b/package.json index 46bafee..8a41833 100644 --- a/package.json +++ b/package.json @@ -32,15 +32,15 @@ }, "devDependencies": { "@types/fetch-mock": "7.3.5", - "@types/jest": "27.4.1", + "@types/jest": "^29.5.14", "fetch-mock": "^9.11.0", - "jest": "^27.1.4", + "jest": "^29.7.0", "node-fetch": "^2.6.1", "nyc": "^15.1.0", - "ts-jest": "27.1.4", + "ts-jest": "^29.4.7", "ts-loader": "^9.2.5", "ts-node": "^10.1.0", - "typescript": "^4.3.5", + "typescript": "^5.9.3", "webpack": "^5.50.0", "webpack-cli": "^4.7.2" }