Skip to content
Snippets Groups Projects
Commit 55710fa0 authored by Lucas Gabriel Lima's avatar Lucas Gabriel Lima
Browse files

add gulp-mocha library and task for testing

parent f24c3c11
No related branches found
No related tags found
2 merge requests!10Gulp,!7Refactor enrollments route to include query building
Pipeline #
var gulp = require('gulp'); var gulp = require('gulp');
var mocha = require('gulp-mocha');
gulp.task('default', function() { gulp.task('default', function() {
}); });
gulp.task('test', function(){
gulp.src('test/test.js', {read: false})
.pipe(mocha())
.once('error', function(){
process.exit(1);
})
.once('end', function(){
process.exit();
})
});
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
"chai": "^3.5.0", "chai": "^3.5.0",
"chai-http": "^3.0.0", "chai-http": "^3.0.0",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"gulp-mocha": "^3.0.1",
"mocha": "^2.5.3" "mocha": "^2.5.3"
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment