Add karma based testing

This commit is contained in:
lukasmartinelli
2016-11-23 14:38:09 +01:00
parent b3d355957d
commit 824821f2c8
5 changed files with 56 additions and 3 deletions

View File

@@ -6,8 +6,10 @@
"scripts": {
"stats": "webpack --config webpack.production.config.js --profile --json > stats.json",
"build": "webpack --config webpack.production.config.js --progress --profile --colors",
"test": "karma start --single-run",
"test-watch": "karma start",
"start": "webpack-dev-server --progress --profile --colors",
"lint": "eslint --ext js --ext jsx src"
"lint": "eslint --ext js --ext jsx {src,test}"
},
"repository": {
"type": "git",
@@ -68,8 +70,6 @@
}
},
"devDependencies": {
"sass-loader": "^4.0.1",
"node-sass": "^3.9.2",
"babel-core": "6.14.0",
"babel-eslint": "^6.1.2",
"babel-loader": "6.2.4",
@@ -87,7 +87,11 @@
"file-loader": "0.9.0",
"html-webpack-plugin": "^2.22.0",
"json-loader": "^0.5.4",
"karma": "^1.3.0",
"karma-webpack": "^1.8.0",
"node-sass": "^3.9.2",
"react-hot-loader": "1.3.0",
"sass-loader": "^4.0.1",
"style-loader": "0.13.1",
"transform-loader": "^0.2.3",
"url-loader": "0.5.7",