$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine
.babelrc:
{
"presets": ["es2015"]
}
package.json:
…
"scripts": {
"test": "babel-node spec/run.js"
},
…
spec/run.js:
import Jasmine from 'jasmine'
var jasmine = new Jasmine()
jasmine.loadConfigFile('spec/support/jasmine.json')
jasmine.execute()
Thank you for this, worked perfectly for me! Like you I couldn't quite get Jasmine-ES6 to work, so I was very happy to find your issue there pointing me to this gist. Thank you again! :)