Configure todomvc-flux npm test to use jest
Joshua Ma committed
May 23, 2014 at 12:36 UTC
a616742fcead55411b9b7ccb41eca10b78e77c41
1 file changed
+4
-1
examples/todomvc-flux/package.json
+4
-1
@@ -20,7 +20,7 @@
20
"start": "STATIC_ROOT=./static watchify -o js/bundle.js -v -d .",
21
"build": "STATIC_ROOT=./static NODE_ENV=production browserify . | uglifyjs -cm > js/bundle.min.js",
22
"collect-static": "collect-static . ./static",
23
- "test": "echo \"Error: no test specified\" && exit 1"
23
+ "test": "jest"
24
},
25
"author": "Bill Fisher",
26
"license": "Apache 2",
@@ -29,5 +29,8 @@
29
"reactify",
30
"envify"
31
]
32
+ },
33
+ "jest": {
34
+ "rootDir": "./js"
35
}
36
}