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 11node_modules
22yarn.lock
3+ package-lock.json
34.nyc_output
Original file line number Diff line number Diff line change 11'use strict' ;
2- const gutil = require ( 'gulp-util ' ) ;
2+ const PluginError = require ( 'plugin-error ' ) ;
33const through = require ( 'through2' ) ;
44const dargs = require ( 'dargs' ) ;
55const resolveCwd = require ( 'resolve-cwd' ) ;
@@ -21,7 +21,7 @@ module.exports = options => {
2121 }
2222
2323 if ( file . isStream ( ) ) {
24- cb ( new gutil . PluginError ( 'gulp-ava' , 'Streaming not supported' ) ) ;
24+ cb ( new PluginError ( 'gulp-ava' , 'Streaming not supported' ) ) ;
2525 return ;
2626 }
2727
@@ -35,7 +35,7 @@ module.exports = options => {
3535 const nycBin = resolveCwd ( 'nyc/bin/nyc.js' ) ;
3636
3737 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' ) ) ;
3939 return ;
4040 }
4141
@@ -52,7 +52,7 @@ module.exports = options => {
5252 ps . then ( ( ) => {
5353 cb ( ) ;
5454 } ) . catch ( ( ) => {
55- cb ( new gutil . PluginError ( 'gulp-ava' , 'One or more tests failed' ) ) ;
55+ cb ( new PluginError ( 'gulp-ava' , 'One or more tests failed' ) ) ;
5656 } ) ;
5757 } ) ;
5858} ;
Original file line number Diff line number Diff line change 3636 "ava" : " ^1.0.1" ,
3737 "dargs" : " ^6.0.0" ,
3838 "execa" : " ^1.0.0" ,
39- "gulp-util" : " ^3.0.8" ,
39+ "fancy-log" : " ^1.3.3" ,
40+ "plugin-error" : " ^1.0.1" ,
4041 "resolve-cwd" : " ^2.0.0" ,
4142 "through2" : " ^3.0.0"
4243 },
Original file line number Diff line number Diff line change 11import test from 'ava' ;
22import vinylFile from 'vinyl-file' ;
33import hooker from 'hooker' ;
4- import gutil from 'gulp-util ' ;
4+ import log from 'fancy-log ' ;
55import ava from '.' ;
66
77test . cb ( 'main' , t => {
88 const stream = ava ( ) ;
99
1010 hooker . hook ( process . stdout , 'write' , ( ...args ) => {
1111 if ( / 2 .* p a s s e d / . test ( args . join ( ' ' ) ) ) {
12- hooker . unhook ( gutil , ' log' ) ;
12+ hooker . unhook ( log ) ;
1313 t . pass ( ) ;
1414 t . end ( ) ;
1515 }
You can’t perform that action at this time.
0 commit comments