Syncano / syncano-testing-examples

Nightwatch End to End testing examples for React applications
https://www.syncano.io/
46 stars 11 forks source link

Unexpected Token Export #14

Open Usman-Amir opened 6 years ago

Usman-Amir commented 6 years ago

Hi,

I am getting following error when i am trying to run "npm test", am i doing something wrong.

Error Log 13:39:54.469 INFO - Launching a standalone Selenium Server 13:39:54.609 INFO - Java: Oracle Corporation 9.0.4+11 13:39:54.609 INFO - OS: Windows 10 10.0 amd64 13:39:54.626 INFO - v2.53.1, with Core v2.53.1. Built from revision a36b8b1 13:39:54.694 INFO - Driver class not found: com.opera.core.systems.OperaDriver 13:39:54.694 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered 13:39:54.702 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped: registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform WIN10 13:39:54.703 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver 13:39:54.703 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered 13:39:54.856 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4747/wd/hub 13:39:54.856 INFO - Selenium Server is up and running


Actual Error on Node Console testLogin.js:1 (function (exports, require, module, filename, dirname) { export default [{ ^^^^^^

SyntaxError: Unexpected token export at createScript (vm.js:80:10) at Object.runInThisContext (vm.js:139:10) at Module._compile (module.js:607:28) at loader (.\node_modules\babel-register\lib\node.js:144:5) at Object.require.extensions.(anonymous function) [as .js] (.n\node_modules\babel-register\lib\node.js:154:7) at Module.load (module.js:556:32) at tryModuleLoad (module.js:499:12) at Function.Module._load (module.js:491:3) at Module.require (module.js:587:17) at require (internal/module.js:11:18)