@@ -473,16 +473,20 @@ const noTransformCode = currify((lint, options, t, input) => {
473473
474474const getMessage = ( { message} ) => message ;
475475
476- const report = ( dir , lint , options ) => ( t ) => ( name , message ) => {
476+ const report = ( dir , lint , options ) => ( t ) => ( name , message , plugins ) => {
477477 checkReport ( name , message ) ;
478478
479479 const full = join ( dir , name ) ;
480480 const [ source , isTS ] = readFixture ( full ) ;
481481
482- return reportCode ( lint , {
482+ const addT = reportCode ( lint , {
483483 isTS,
484484 ...options ,
485- } , t , source , message ) ;
485+ } ) ;
486+
487+ const run = addT ( t ) ;
488+
489+ return run ( source , message , plugins ) ;
486490} ;
487491
488492const noReport = currify ( ( dir , lint , options , t , name ) => {
@@ -542,11 +546,15 @@ const reportWithOptions = currify((dir, lint, options, t, name, message, ruleOpt
542546 [ rule ] : [ 'on' , ruleOptions ] ,
543547 } ;
544548
545- return reportCode ( lint , {
549+ const addT = reportCode ( lint , {
546550 ...options ,
547551 rules,
548552 isTS,
549- } , t , source , message ) ;
553+ } ) ;
554+
555+ const run = addT ( t ) ;
556+
557+ return run ( source , message ) ;
550558} ) ;
551559
552560const noReportWithOptions = currify ( ( dir , lint , options , t , name , ruleOptions ) => {
@@ -567,10 +575,15 @@ const noReportWithOptions = currify((dir, lint, options, t, name, ruleOptions) =
567575 } , t , source ) ;
568576} ) ;
569577
570- const reportCode = currify ( ( lint , options , t , source , message ) => {
578+ const reportCode = ( lint , options ) => ( t ) => ( source , message , addons ) => {
579+ const { plugins} = options ;
571580 const { places} = lint ( source , {
572581 fix : false ,
573582 ...options ,
583+ plugins : [ {
584+ ...toObject ( plugins ) ,
585+ ...addons ,
586+ } ] ,
574587 } ) ;
575588
576589 const resultMessages = places . map ( getMessage ) ;
@@ -579,7 +592,7 @@ const reportCode = currify((lint, options, t, source, message) => {
579592 return t . deepEqual ( resultMessages , message ) ;
580593
581594 return t . equal ( resultMessages [ 0 ] , message ) ;
582- } ) ;
595+ } ;
583596
584597const noReportCode = currify ( ( lint , options , t , source ) => {
585598 const { places} = lint ( source , {
0 commit comments