jest-haste-map节点模块中的意外令牌')'

时间:2018-09-05 11:18:31

标签: react-native jestjs

当我尝试运行测试时,杰斯特当前抛出以下错误:

/Users/harrycondron/developer/marketplace/app/partner/marketplace/node_modules/react-native/jest/hasteImpl.js:50
 ) /*: string | void */ {
 ^

   SyntaxError: Unexpected token )
   at createScript (vm.js:56:10)
   at Object.runInThisContext (vm.js:97:10)
   at Module._compile (module.js:549:28)
   at Object.Module._extensions..js (module.js:586:10)
   at Module.load (module.js:494:32)
   at tryModuleLoad (module.js:453:12)
   at Function.Module._load (module.js:445:3)
   at Module.require (module.js:504:17)
   at require (internal/module.js:20:19)
   at Object.<anonymous> (/Users/harrycondron/developer/marketplace/app/partner/marketplace/node_modules/jest-haste-map/build/worker.js:19:19)

我的Jest版本是“ 23.3.0”

感谢您的帮助

0 个答案:

没有答案