发布

  • fix(nextjs): configure Jest to use tsconfig.json for Next.js apps (#32089)

    frostbyte_neo 发布于 2025-08-07 13:47:19 +00:00

    Current Behavior

    When generating a Next.js application with Jest as the unit test runner,
    Jest configuration fails because it defaults to looking for
    tsconfig.app.json which doesn't exist in Next.js projects. Next.js
    apps use tsconfig.json as their main TypeScript configuration file.

    Expected Behavior

    Jest should be configured to use tsconfig.json as the runtime
    TypeScript configuration for Next.js applications, allowing Jest to
    properly resolve TypeScript configurations.

    Related Issue(s)

    Fixes #31555

    下载附件