This repository was archived by the owner on Aug 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Expand file tree Collapse file tree 4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
2
yarn.lock
3
+ package-lock.json
3
4
.nyc_output
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- const gutil = require ( 'gulp-util ' ) ;
2
+ const PluginError = require ( 'plugin-error ' ) ;
3
3
const through = require ( 'through2' ) ;
4
4
const dargs = require ( 'dargs' ) ;
5
5
const resolveCwd = require ( 'resolve-cwd' ) ;
@@ -21,7 +21,7 @@ module.exports = options => {
21
21
}
22
22
23
23
if ( file . isStream ( ) ) {
24
- cb ( new gutil . PluginError ( 'gulp-ava' , 'Streaming not supported' ) ) ;
24
+ cb ( new PluginError ( 'gulp-ava' , 'Streaming not supported' ) ) ;
25
25
return ;
26
26
}
27
27
@@ -35,7 +35,7 @@ module.exports = options => {
35
35
const nycBin = resolveCwd ( 'nyc/bin/nyc.js' ) ;
36
36
37
37
if ( ! nycBin ) {
38
- cb ( new gutil . PluginError ( 'gulp-ava' , 'Couldn\'t find the `nyc` binary' ) ) ;
38
+ cb ( new PluginError ( 'gulp-ava' , 'Couldn\'t find the `nyc` binary' ) ) ;
39
39
return ;
40
40
}
41
41
@@ -52,7 +52,7 @@ module.exports = options => {
52
52
ps . then ( ( ) => {
53
53
cb ( ) ;
54
54
} ) . catch ( ( ) => {
55
- cb ( new gutil . PluginError ( 'gulp-ava' , 'One or more tests failed' ) ) ;
55
+ cb ( new PluginError ( 'gulp-ava' , 'One or more tests failed' ) ) ;
56
56
} ) ;
57
57
} ) ;
58
58
} ;
Original file line number Diff line number Diff line change 36
36
"ava" : " ^1.0.1" ,
37
37
"dargs" : " ^6.0.0" ,
38
38
"execa" : " ^1.0.0" ,
39
- "gulp-util" : " ^3.0.8" ,
39
+ "fancy-log" : " ^1.3.3" ,
40
+ "plugin-error" : " ^1.0.1" ,
40
41
"resolve-cwd" : " ^2.0.0" ,
41
42
"through2" : " ^3.0.0"
42
43
},
Original file line number Diff line number Diff line change 1
1
import test from 'ava' ;
2
2
import vinylFile from 'vinyl-file' ;
3
3
import hooker from 'hooker' ;
4
- import gutil from 'gulp-util ' ;
4
+ import log from 'fancy-log ' ;
5
5
import ava from '.' ;
6
6
7
7
test . cb ( 'main' , t => {
8
8
const stream = ava ( ) ;
9
9
10
10
hooker . hook ( process . stdout , 'write' , ( ...args ) => {
11
11
if ( / 2 .* p a s s e d / . test ( args . join ( ' ' ) ) ) {
12
- hooker . unhook ( gutil , ' log' ) ;
12
+ hooker . unhook ( log ) ;
13
13
t . pass ( ) ;
14
14
t . end ( ) ;
15
15
}
You can’t perform that action at this time.
0 commit comments