Skip to content

Commit bf0ff06

Browse files
committed
Add karma-es6-shim for ES6 support (React16 uses Set) for phantomJS
1 parent 02139e5 commit bf0ff06

3 files changed

Lines changed: 25 additions & 1 deletion

File tree

karma.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ module.exports = function(karma) {
1515
singleRun: false,
1616
frameworks: [
1717
'jasmine',
18-
'phantomjs-shim'
18+
'phantomjs-shim',
19+
'es6-shim'
1920
],
2021
preprocessors: {
2122
'tests.webpack.js': 'webpack'

package-lock.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"json-loader": "^0.5.4",
5959
"karma": "^0.13.22",
6060
"karma-coverage": "^1.0.0",
61+
"karma-es6-shim": "^1.0.0",
6162
"karma-jasmine": "^1.0.2",
6263
"karma-phantomjs-launcher": "^1.0.0",
6364
"karma-phantomjs-shim": "^1.4.0",

0 commit comments

Comments
 (0)