From d355f3f77cda159640f3d2f73dacfca6b4c181db Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 1 Feb 2020 06:32:21 +0900 Subject: [PATCH] Update gulpfile.ts --- gulpfile.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gulpfile.ts b/gulpfile.ts index 274f05a5a..fde66717a 100644 --- a/gulpfile.ts +++ b/gulpfile.ts @@ -5,6 +5,7 @@ import * as fs from 'fs'; import * as gulp from 'gulp'; import * as ts from 'gulp-typescript'; +import * as mocha from 'gulp-mocha'; import * as rimraf from 'rimraf'; import * as rename from 'gulp-rename'; const cleanCSS = require('gulp-clean-css'); @@ -84,4 +85,14 @@ gulp.task('build', gulp.parallel( 'build:client', )); +gulp.task('mocha', () => + gulp.src('./test/**/*.ts') + .pipe(mocha({ + exit: true, + require: 'ts-node/register' + } as any)) +); + +gulp.task('test', gulp.task('mocha')); + gulp.task('default', gulp.task('build'));