TypeScript error in /app/node_modules/pretty-format/build/index.d.ts(7,13):
'=' expected. TS1005
5 | * LICENSE file in the root directory of this source tree.
6 | */
7 | import type * as PrettyFormat from './types';
| ^
8 | /**
9 | * Returns a presentation string of yourval
object
10 | * @param val any potential JavaScript object
解决方法:
typescript 版本升级到3.8.3
"typescript": "3.8.3"
查看: https://github.com/facebook/jest/issues/9703#issuecomment-604132737