use require keyword and add testw to gulp

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2018-12-22 10:52:31 +01:00
parent d2b5536d65
commit f871ab35c2
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 14 additions and 2 deletions

View File

@ -20,7 +20,19 @@ gulp.task('clean', () =>
gulp.task('test', () =>
gulp.src('test/**/*.js', {read: false})
.pipe(mocha({reporter: 'list', compilers: '@babel/register'}))
.pipe(mocha({
reporter: 'list',
require: '@babel/register',
}))
)
gulp.task('testw', () =>
gulp.src('test/**/*.js', {read: false})
.pipe(mocha({
reporter: 'list',
require: '@babel/register',
watch: true,
}))
)
gulp.task('build', () =>

View File

@ -43,7 +43,7 @@
"scripts": {
"start": "node server.js",
"test": "gulp test",
"testw": "mocha --require @babel/register --watch",
"testw": "gulp testw",
"cover": "nyc mocha",
"devel": "gulp devel",
"clean": "gulp clean",