summaryrefslogtreecommitdiff
path: root/web-ui/package.json
diff options
context:
space:
mode:
authorAnike Arni <aarni@thoughtworks.com>2017-02-01 18:00:08 -0200
committerAnike Arni <aarni@thoughtworks.com>2017-02-01 18:00:08 -0200
commitcaa8a4fcf7bf7ddd1c78f8c4e60088d72cecb717 (patch)
treefcb7bedfff05e08a854629decd36180582cc91c0 /web-ui/package.json
parent50efd8f59b814bc27e870ff3b09372b0d717b926 (diff)
[#922] Add react tests
with @tayanefernandes
Diffstat (limited to 'web-ui/package.json')
-rw-r--r--web-ui/package.json8
1 files changed, 7 insertions, 1 deletions
diff --git a/web-ui/package.json b/web-ui/package.json
index a41396f7..52124c54 100644
--- a/web-ui/package.json
+++ b/web-ui/package.json
@@ -6,6 +6,7 @@
"private": true,
"devDependencies": {
"babel": "^6.5.2",
+ "babel-cli": "^6.22.2",
"babel-core": "^6.21.0",
"babel-loader": "^6.2.10",
"babel-preset-es2015": "^6.18.0",
@@ -13,6 +14,7 @@
"bower": "1.7.9",
"copy-webpack-plugin": "^4.0.1",
"dompurify": "^0.8.4",
+ "enzyme": "^2.7.1",
"font-awesome": "^4.7.0",
"handlebars": "^4.0.5",
"he": "^1.1.0",
@@ -22,6 +24,7 @@
"i18next-xhr-backend": "^1.2.1",
"iframe-resizer": "^3.5.7",
"imagemin": "5.2.1",
+ "jasmine": "^2.5.3",
"jasmine-flight": "^4.0.0",
"jasmine-jquery": "^2.1.1",
"jquery": "^3.1.1",
@@ -41,6 +44,7 @@
"modernizr": "^3.3.1",
"quoted-printable": "^1.0.1",
"react": "^15.4.2",
+ "react-addons-test-utils": "^15.4.2",
"react-dom": "^15.4.2",
"requirejs": "2.2.0",
"typeahead.js": "^0.11.1",
@@ -49,7 +53,9 @@
"webpack": "^1.14.0"
},
"scripts": {
- "test": "npm run jshint --silent && npm run build --silent && karma start --single-run $GRUNT_OPTS",
+ "test": "npm run jshint --silent && npm run build-statics --silent && npm run jasmine-test && npm run karma-test",
+ "jasmine-test": "babel-node ./node_modules/.bin/jasmine JASMINE_CONFIG_PATH=test/jasmine.json",
+ "karma-test": "karma start --single-run $GRUNT_OPTS",
"debug": "npm run build && karma start --browsers Chrome $GRUNT_OPTS",
"watch": "npm run compass-watch & npm run handlebars-watch & npm run build-js-watch",
"watch-test": "karma start",