Guest User

Untitled

a guest
Feb 10th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. testHook(() => ({count, increment} = useCounter({ initialCount: 2 })))
  2.  
  3. ● Test suite failed to run
  4.  
  5. Can't convert node without a body
  6.  
  7. at NodePath.ensureBlock (node_modules/@babel/traverse/lib/path/conversion.js:64:11)
  8. at Scope.push (node_modules/@babel/traverse/lib/scope/index.js:727:12)
  9. at Object.toSequenceExpression (node_modules/@babel/types/lib/converters/toSequenceExpression.js:19:11)
  10. at NodePath.replaceExpressionWithStatements (node_modules/@babel/traverse/lib/path/replacement.js:203:36)
  11. at NodePath.insertAfter (node_modules/@babel/traverse/lib/path/modification.js:128:17)
  12. at NodePath.replaceWithMultiple (node_modules/@babel/traverse/lib/path/replacement.js:85:22)
  13. at PluginPass.AssignmentExpression (node_modules/babel-preset-react-app/node_modules/@babel/plugin-transform-destructuring/lib/index.js:433:14)
  14. at newFn (node_modules/@babel/traverse/lib/visitors.js:193:21)
  15. at NodePath._call (node_modules/@babel/traverse/lib/path/context.js:53:20)
  16. at NodePath.call (node_modules/@babel/traverse/lib/path/context.js:40:17)
Add Comment
Please, Sign In to add comment