Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Jasmine ES6 run script for use with Babel 6
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine


  "presets": ["es2015"]


"scripts": {
  "test": "babel-node spec/run.js"


import Jasmine from 'jasmine'

var jasmine = new Jasmine()

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! :)


Dunno what the heck is wrong with Jasmine-ES6 but, these steps worked for me.

You're a lifesaver! Thanks a lot for the script 🚀

danderu commented May 13, 2016

Kudos for you!

This is the best way to implement Jasmine specs and ES6. Thanks for this.

Thanks a lot!

jhenaoz commented Jul 5, 2016

Thanks a lot, huge post!


Any luck on getting coverage for this setup ?

amypellegrini commented Oct 27, 2016 edited

You saved my life or prevented a probable insanity attack <3

vaidik commented Mar 13, 2017


Works perfectly, thanks!

lrettig commented May 2, 2017

Awesome :) Would it be possible to extend this to support passing command line args into jasmine, e.g., to run an individual spec?

smasala commented May 5, 2017

Great solution!

Working solution! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment