javascript - Mocha js import React Component Unexpected token error -


i trying import react component in test file.

import { secondcds } '.\secondcds.js'. 

i getting following error

c:\users\bendind\example\node_modules\babel- core\lib\transformation\file\index.js:591   throw err; ^  syntaxerror: c:/users/bendind/example/app/secondcds.js: unexpected token (617:17) 

the code @ line is:

result.push(<curverow data={data.arr[i]}/>); 

so adding array.

i not above error when transpiling babel , running application.

though, face problem in mocha.

any highly appreciated.


Comments