【发布时间】:2017-12-10 21:31:05
【问题描述】:
从头开始创建 react-native 项目时,我在 devDependencies 中得到了 jest 并且测试通过了!
但现在我在做测试时得到了:
(node:32629) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module '.../node_modules/jest-cli'
(node:32629) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
我应该使用 jest 还是 jest-cli?
【问题讨论】:
标签: node.js reactjs react-native jestjs