网站搜索

jestjs - TypeScript + Jest + Ts-Jest 错误:运行构建脚本时出错


当执行脚本构建时,提示返回依赖错误:

> tsc -p tsconfig.json && rollup -c rollup.config.js

node_modules/@types/jest/index.d.ts:484:51 - error TS2307: Cannot find module 'jest-diff'.

484             diff(a: any, b: any, options?: import("jest-diff").DiffOptions): string | null;
                                                      ~~~~~~~~~~~

node_modules/@types/jest/index.d.ts:538:44 - error TS2307: Cannot find module 'pretty-format'.

538     type SnapshotSerializerPlugin = import('pretty-format').Plugin;
                                               ~~~~~~~~~~~~~~~

关于版本、错误等的更多详情 https://github.com/felipesousa/wunderlist-api/tree/develop

相关文章