Open cer opened 7 years ago
I read this blog: http://jamesknelson.com/testing-in-es6-with-mocha-and-babel-6/
Made this change:
$ git diff
diff --git a/package.json b/package.json
index 321110e..e684f05 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
},
"devDependencies": {
"babel-cli": "^6.9.0",
+ "babel-core": "^6.21.0",
"babel-plugin-add-module-exports": "^0.1.4",
"babel-preset-es2015": "^6.3.13",
"babel-preset-stage-0": "^6.3.13",
And ran it with this command:
mocha --compilers js:babel-core/register --reporter spec --ui bdd test/*-spec.js