Quantcast
Channel: Jest(react testing tool) error - Parse Error: Line 1: Illegal import declaration - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Matt Dell for Jest(react testing tool) error - Parse Error: Line 1:...

Presumably your mypage.js component has as its first line something likeimport React from 'react' or something similar. That is ES6 syntax and by default ReactTools is only compatible with ES5 code,...

View Article



Jest(react testing tool) error - Parse Error: Line 1: Illegal import declaration

I'm now using node.js(0.10.x) version, jest(0.4.x) version to test react.js.Before I decided to test my react components, I have used node.js 0.12.x version. Change through nvm to 0.10.x.I rebuilded...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>