use require keyword and add testw to gulp
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
d2b5536d65
commit
f871ab35c2
14
gulpfile.js
14
gulpfile.js
|
@ -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', () =>
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue