mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
18 lines
393 B
JavaScript
18 lines
393 B
JavaScript
var gulp = require('gulp');
|
|
var mocha = require('gulp-mocha');
|
|
|
|
gulp.task('test', function(){
|
|
return gulp.src('test/*.js', {read: false})
|
|
.pipe(mocha({
|
|
timeout: 2000,
|
|
reporter: 'dot',
|
|
bail: true,
|
|
globals: ['___eio', 'document']
|
|
}))
|
|
.once('error', function () {
|
|
process.exit(1);
|
|
})
|
|
.once('end', function () {
|
|
process.exit();
|
|
});
|
|
}); |