Skip to content

Commit 903c058

Browse files
committed
added babel compiler to tests
1 parent 1373275 commit 903c058

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: .babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
"es2015"
4+
]
5+
}

Diff for: package.json

+3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"scripts": {
1010
"test": "NODE_PATH=$(pwd)/test/tokens/node_modules $npm_package_scripts_test_unit --harmony_destructuring --harmony_spread_arrays --use_strict",
1111
"test:w": "NODE_PATH=$(pwd)/test/tokens/node_modules $npm_package_scripts_test_unit --watch --harmony_destructuring --harmony_spread_arrays --use_strict",
12+
"test:babel": "NODE_PATH=$(pwd)/test/tokens/node_modules $npm_package_scripts_test_unit --compilers js:babel-register",
1213
"test:unit": "mocha --require test/setup.js --ui tdd test/*/*.js"
1314
},
1415
"repository": {
@@ -45,6 +46,8 @@
4546
"seekout": "^1.0.1"
4647
},
4748
"devDependencies": {
49+
"babel-preset-es2015": "^6.5.0",
50+
"babel-register": "^6.5.2",
4851
"mocha": "^2.4.5",
4952
"sinon": "^1.17.3"
5053
}

0 commit comments

Comments
 (0)