0

trying to run mocha tests and get results in browser. but getting uncaught token import error. Please help in how to compile the tests before running the tests in browser.

GR211
  • 13
  • 1
  • 2
  • We need more info like config, etc... maybe a duplicate of http://stackoverflow.com/questions/35040978/babel-unexpected-token-import-when-running-mocha-tests ? – Boris Charpentier Mar 08 '17 at 04:42
  • the tests run successfully on node command but when trying to run through runner.html, don't know how to compile them before running – GR211 Mar 08 '17 at 04:45
  • What are you trying to test, client or node.js code ? What's your setup ? – Boris Charpentier Mar 08 '17 at 05:09
  • Its client-side, with mocha, chai and babel. I tried adding webpack in the nodemodules but not sure how to add that in the package.json. Was reading about babel loaders. Can someone provide me running example with it – GR211 Mar 09 '17 at 02:25

0 Answers0