-
Notifications
You must be signed in to change notification settings - Fork 469
Closed
Labels
Description
Version
29.4.5
Steps to reproduce
See website-local/website-scrap-engine#1282
I'm trying to upgrade ts-jest from 29.4.4 to 29.4.5, and had configured diagnostics.ignoreCodes following the messages of the errors, and the messages shows like the config does not work.
See https://github.com/website-local/website-scrap-engine/actions/runs/19607035630/job/56147340502?pr=1282 for a full log of this.
Expected behavior
The tests would just run like version 29.4.4
Actual behavior
message TS151002: Using hybrid module kind (Node16/18/Next) is only supported in "isolatedModules: true". Please set "isolatedModules: true" in your tsconfig.json. To disable this message, you can set "diagnostics.ignoreCodes" to include 151002 in your ts-jest config. See more at https://kulshekhar.github.io/ts-jest/docs/getting-started/options/diagnostics
All my tests failed after the upgrade.
Debug log
Additional context
The error is created here:
ts-jest/src/legacy/ts-jest-transformer.ts
Line 194 in f9b56a6
| throw configs.createTsError(processWithTsResult.diagnostics) |
Environment
System:
OS: Windows 10 10.0.17763
CPU: (8) x64 Intel(R) Core(TM) i7-4700HQ CPU @ 2.40GHz
Binaries:
Node: 16.13.1 - D:\dev-dependency\node-v16.13.1-win-x64\node.EXE
npm: 8.1.2 - D:\dev-dependency\node-v16.13.1-win-x64\npm.CMD
npmPackages:
jest: ^30.2.0 => 30.2.0