Closed ydennisy closed 4 years ago
Might be a regression from #672 since @types/jest
was removed from the templates and added as a direct TSDX dependency (maybe that's why it was like that in the first place but there were no comments on it :confused: ).
But since you said you installed the types yourself and it still didn't work sounds like a possible duplicate of #696 .
I have tried adding the types manually to the
package.json
with no luck.
Did you npm install -D @types/jest
? Or just added to package.json
?
@agilgur5 I tried yarn add @types/jest --dev
but it didn't work for me. I am still getting the following error in VSCode:-
Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try
npm i --save-dev @types/jest
ornpm i --save-dev @types/mocha
.ts(2582)
Can we reopen this issue because it seems anyone would encounter this during setup itself?
@agilgur5 I tried
yarn add @types/jest --dev
but it didn't work for me. I am still getting the following error in VSCode:-Cannot find name 'describe'. Do you need to install type definitions for a test runner? Try
npm i --save-dev @types/jest
ornpm i --save-dev @types/mocha
.ts(2582)Can we reopen this issue because it seems anyone would encounter this during setup itself?
+1
Current Behavior
Everything is working as expected, but VSCode cannot find the type definitions for
jest
, I am pretty much using an unchanged init of the library:I have tried adding the types manually to the
package.json
with no luck.Expected behavior
No errors to be shown.
Suggested solution(s)
Additional context
Your environment