aboutsummaryrefslogtreecommitdiffstats
path: root/web/package.json
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-01-02 15:29:51 +1300
committerAldo Cortesi <aldo@nullcube.com>2015-01-02 15:29:51 +1300
commit80339aef934e6d187b3cfff2d2c38fb52fcae7c9 (patch)
treee83c3e9e3c0d6f03981983e6baaa65fcd3c5c9e2 /web/package.json
parentb14b4ace25b456f54677fe8efc910d8db0f36506 (diff)
downloadmitmproxy-80339aef934e6d187b3cfff2d2c38fb52fcae7c9.tar.gz
mitmproxy-80339aef934e6d187b3cfff2d2c38fb52fcae7c9.tar.bz2
mitmproxy-80339aef934e6d187b3cfff2d2c38fb52fcae7c9.zip
Unit test framework for web client-side code
- Also make formatSize nicer and test it. Now there's no excuse! ;)
Diffstat (limited to 'web/package.json')
-rw-r--r--web/package.json84
1 files changed, 48 insertions, 36 deletions
diff --git a/web/package.json b/web/package.json
index c4beef71..b18d9259 100644
--- a/web/package.json
+++ b/web/package.json
@@ -1,44 +1,56 @@
{
- "name": "mitmproxy",
- "private": true,
- "dependencies": {
+ "name": "mitmproxy",
+ "private": true,
+ "scripts": {
+ "test": "jest ./src/js"
+ },
+ "jest": {
+ "testPathDirs": [
+ "./src/js"
+ ],
+ "testPathIgnorePatterns": [
+ "/node_modules/",
+ "testutils.js"
+ ],
+ "testDirectoryName": "tests"
+ },
+ "dependencies": {
"jquery": "",
"lodash": "",
"react": "",
"react-router": "",
"bootstrap": "",
"flux": ""
- },
- "devDependencies": {
- "bower": "",
- "browserify": "^6.3.4",
- "gulp": "",
- "gulp-concat": "",
- "gulp-connect": "",
- "gulp-jshint": "",
- "gulp-less": "",
- "gulp-livereload": "",
- "gulp-minify-css": "",
- "gulp-notify": "",
- "gulp-plumber": "",
- "gulp-react": "",
- "gulp-rename": "",
- "gulp-replace": "",
- "gulp-rev": "",
- "gulp-sourcemaps": "",
- "gulp-uglify": "",
- "gulp-util": "",
- "jest-cli": "^0.1.18",
- "jshint-stylish": "",
- "lodash": "",
- "map-stream": "",
- "react": "",
- "react-tools": "",
- "reactify": "",
- "vinyl-buffer": "",
- "vinyl-source-stream": "",
- "vinyl-transform": "",
-
- "gulp-peg": ""
- }
+ },
+ "devDependencies": {
+ "bower": "",
+ "browserify": "^6.3.4",
+ "gulp": "",
+ "gulp-concat": "",
+ "gulp-connect": "",
+ "gulp-jshint": "",
+ "gulp-less": "",
+ "gulp-livereload": "",
+ "gulp-minify-css": "",
+ "gulp-notify": "",
+ "gulp-plumber": "",
+ "gulp-react": "",
+ "gulp-rename": "",
+ "gulp-replace": "",
+ "gulp-rev": "",
+ "gulp-sourcemaps": "",
+ "gulp-uglify": "",
+ "gulp-util": "",
+ "jest-cli": "^0.1.18",
+ "jshint-stylish": "",
+ "lodash": "",
+ "map-stream": "",
+ "react": "",
+ "react-tools": "",
+ "reactify": "",
+ "vinyl-buffer": "",
+ "vinyl-source-stream": "",
+ "vinyl-transform": "",
+ "gulp-peg": ""
+ }
}