I think maybe jest needs to be imported from @jest/globals instead of using @types/jest which also throws an error if i install the latest version 29.5.0 to my project
node_modules/@jest/environment/build/index.d.ts:365:26 - error TS2430: Interface 'JestImportMeta' incorrectly extends interface 'ImportMeta'.
Types of property 'jest' are incompatible.
Type 'Jest' is missing the following properties from type 'typeof jest': runAllTimersAsync, runOnlyPendingTimersAsync, advanceTimersByTimeAsync, advanceTimersToNextTimerAsync
365 export declare interface JestImportMeta extends ImportMeta {
I think maybe jest needs to be imported from
@jest/globals
instead of using@types/jest
which also throws an error if i install the latest version 29.5.0 to my project