运行Jest时出错

时间:2018-06-05 22:11:51

标签: jestjs

每当我运行Jest时,我都会收到此错误:

 FAIL  Downloads/sum.test.js
  ● Test suite failed to run

    The name `source-map-support` was looked up in the Haste module map. It cannot be resolved, because there exists several different files, or packages, that provide a module for that particular name and platform. The platform is generic (no extension). You must delete or blacklist files until there remains only one of these:

      * `/Users/clare/Library/Caches/Yarn/v1/npm-source-map-support-0.4.18-0286a6de8be42641338594e97ccea75f0a2c585f/package.json` (package)
      * `/Users/clare/Library/Caches/Yarn/v1/npm-source-map-support-0.5.6-4435cee46b1aab62b8e8610ce60f788091c51c13/package.json` (package)

      at ModuleMap._assertNoDuplicates (node_modules/jest-haste- map/build/module_map.js:119:11)

0 个答案:

没有答案