-
fix(nextjs): configure Jest to use tsconfig.json for Next.js apps (#32089)
发布于
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.jsonwhich doesn't exist in Next.js projects. Next.js
apps usetsconfig.jsonas their main TypeScript configuration file.Expected Behavior
Jest should be configured to use
tsconfig.jsonas the runtime
TypeScript configuration for Next.js applications, allowing Jest to
properly resolve TypeScript configurations.Related Issue(s)
Fixes #31555
下载附件