🌐 AI搜索 & 代理 主页
Skip to content

[Bug]: ts-jest failed to run upgrading from 29.4.4 to 29.4.5 #5130

@myfreeer

Description

@myfreeer

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

ts-jest.log

Additional context

The error is created here:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions