🐛 Bug Report
I was trying to init jest config with npx ts-jest config:init then I got an error.
Cannot find module '@ts-jest/dist/types' or its corresponding type declarations.
/** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
};
It is introduced by #2742.
Just remove @ from @ts-jest fixes the bug.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There shouldn't be any type error.
🐛 Bug Report
I was trying to init jest config with
npx ts-jest config:initthen I got an error.It is introduced by #2742.
Just remove
@from@ts-jestfixes the bug.To Reproduce
Steps to reproduce the behavior:
Expected behavior
There shouldn't be any type error.