@@ -249,7 +249,8 @@ test('unified-args', function (t) {
249249 'alpha.text: no issues found' ,
250250 'bravo.text: no issues found' ,
251251 'charlie' + sep + 'delta.text: no issues found' ,
252- 'charlie' + sep + 'echo.text: no issues found'
252+ 'charlie' + sep + 'echo.text: no issues found' ,
253+ 'delta.text: no issues found'
253254 ] . join ( '\n' )
254255
255256 t . plan ( 1 )
@@ -287,7 +288,8 @@ test('unified-args', function (t) {
287288 'alpha.text: no issues found' ,
288289 'bravo.text: no issues found' ,
289290 'charlie' + sep + 'delta.text: no issues found' ,
290- 'charlie' + sep + 'echo.text: no issues found'
291+ 'charlie' + sep + 'echo.text: no issues found' ,
292+ 'delta.text: no issues found'
291293 ] . join ( '\n' )
292294
293295 t . plan ( 1 )
@@ -497,7 +499,62 @@ test('unified-args', function (t) {
497499 '--ext' ,
498500 'txt,text' ,
499501 '--ignore-pattern' ,
500- 'charlie/*,three/*.txt'
502+ 'charlie/*,three/*.txt,delta.*'
503+ ] ) . then ( onsuccess , t . fail )
504+
505+ function onsuccess ( result ) {
506+ t . deepEqual (
507+ [ result . stdout , strip ( result . stderr ) ] ,
508+ [ '' , expected ] ,
509+ 'should work'
510+ )
511+ }
512+ } )
513+
514+ t . test ( 'should support `--ignore-path`' , function ( t ) {
515+ var expected = [
516+ 'alpha.text: no issues found' ,
517+ 'bravo.text: no issues found' ,
518+ 'charlie' + sep + 'echo.text: no issues found' ,
519+ 'delta.text: no issues found'
520+ ] . join ( '\n' )
521+
522+ t . plan ( 1 )
523+
524+ execa ( bin , [
525+ '.' ,
526+ '--ext' ,
527+ 'text' ,
528+ '--ignore-path' ,
529+ join ( 'charlie' , 'ignore' )
530+ ] ) . then ( onsuccess , t . fail )
531+
532+ function onsuccess ( result ) {
533+ t . deepEqual (
534+ [ result . stdout , strip ( result . stderr ) ] ,
535+ [ '' , expected ] ,
536+ 'should work'
537+ )
538+ }
539+ } )
540+
541+ t . test ( 'should support `--ignore-path-resolve-from cwd`' , function ( t ) {
542+ var expected = [
543+ 'alpha.text: no issues found' ,
544+ 'bravo.text: no issues found' ,
545+ 'charlie' + sep + 'echo.text: no issues found'
546+ ] . join ( '\n' )
547+
548+ t . plan ( 1 )
549+
550+ execa ( bin , [
551+ '.' ,
552+ '--ext' ,
553+ 'text' ,
554+ '--ignore-path' ,
555+ join ( 'charlie' , 'ignore' ) ,
556+ '--ignore-path-resolve-from' ,
557+ 'cwd'
501558 ] ) . then ( onsuccess , t . fail )
502559
503560 function onsuccess ( result ) {
0 commit comments