I recently updated the @types/jest
package in my project from version 24.9.1 to version 29.4.0. However, I'm now encountering a parsing error in the index.d.ts file of the package itself, located in the node_modules/@types/jest
directory. The error message is Parsing error: ']' expected
.
I'm not sure if this issue is caused by my TypeScript version, which is 3.8.3, because when I tried the same update on a different project with the same TypeScript version, it worked fine.