Skip to content

Commit 7199cc5

Browse files
authored
Merge pull request codeschool-projects#2 from codeschool/safe-tests
Transpiling before running tests
2 parents 1212045 + ed02f46 commit 7199cc5

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,26 @@
55
"private": true,
66
"scripts": {
77
"start": "browser-sync start --server ./src --files ./src",
8-
"test": "mocha --colors test/*.spec.js",
8+
"test": "mocha --colors --compilers js:babel-register test/*.spec.js",
99
"test:watch": "watch-run -p 'src/index.html,test/portfolio.spec.js' npm run test",
1010
"deploy:github-pages": "git subtree push --prefix src origin gh-pages"
1111
},
1212
"author": "Adam Fortuna <adam@codeschool.com>",
1313
"license": "MIT",
1414
"devDependencies": {
15+
"babel-preset-es2015": "^6.18.0",
16+
"babel-register": "^6.18.0",
1517
"browser-sync": "^2.14.0",
1618
"chai": "^3.5.0",
1719
"jsdom": "^9.4.1",
1820
"mocha": "^3.0.1",
1921
"watch-run": "^1.2.4"
22+
},
23+
"engines": {
24+
"node": ">=4.6",
25+
"npm": ">=2.15"
26+
},
27+
"babel": {
28+
"presets": ["es2015"]
2029
}
2130
}

0 commit comments

Comments
 (0)