How can I also user babel for my mocha tests?

357
February 24, 2017, at 05:48 AM

I have a mocha test suite. I was previously using:

 "scripts": {
    "start": "nodemon index.js",
    "test": "NODE_ENV=test nodemon --exec 'mocha --recursive -R min'"
  },

For both starting my server and running my tests.

I have no started using await syntax so have follow Babel's example docs and have changed start to this:

  "start": "babel-node index.js --presets es2015,stage-2",

I'm having trouble working out how I can do the same for my test line. How can I do this?

Thank you

Rent Charter Buses Company
READ ALSO
How can I a access a specific pv.Dot via javascript?

How can I a access a specific pv.Dot via javascript?

I know there a restrictions with the protovis 32 library, but when I make a pv

399
blur event not working on dropdown

blur event not working on dropdown

I have this little script that checks to see if a form is valid before enabling the Submit button:

504
JavaScript and debugging it [on hold]

JavaScript and debugging it [on hold]

im looking at a page (http://iimgur

393
Trigger a new tab that will work on all browsers

Trigger a new tab that will work on all browsers

I have a button, clicking on it, will to open up a new tab

404