You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node_modules/@jest/test-result/build/index.d.ts:14:27 - error TS2307: Cannot find module 'jest-resolve' or its corresponding type declarations.
14 import type Resolver from 'jest-resolve';
~~~~~~~~~~~~~~
Found 1 error in ../../node_modules/.pnpm/@[email protected]/node_modules/@jest/test-result/build/index.d.ts:14
Version
29.7.0
Steps to reproduce
npm i @jest/test-result@^29.7.0
echo "import * as testResult from '@jest/test-result';" > index.ts
npx tsc index.ts
https://stackblitz.com/edit/node-my9zod?file=index.ts,package.json,package-lock.json
(Real use case) https://stackblitz.com/edit/node-ru6fy9?file=index.ts,package.json
Expected behavior
No Typescript compilation errors
Actual behavior
Typescript error thrown
Additional context
The type declarations of https://www.npmjs.com/package/@jest/test-result import from 'jest-resolve' despite it only being depended on as a dev dependency.
Environment
The text was updated successfully, but these errors were encountered: