@@ -41,7 +41,7 @@ describe('Tslint Target', () => {
4141 ) . toPromise ( ) . then ( done , done . fail ) ;
4242 } , 30000 ) ;
4343
44- it ( 'supports exclude' , ( done ) => {
44+ it ( 'supports exclude with glob ' , ( done ) => {
4545 host . writeMultipleFiles ( filesWithErrors ) ;
4646 const overrides : Partial < TslintBuilderOptions > = { exclude : [ '**/foo.ts' ] } ;
4747
@@ -50,6 +50,24 @@ describe('Tslint Target', () => {
5050 ) . toPromise ( ) . then ( done , done . fail ) ;
5151 } , 30000 ) ;
5252
53+ it ( 'supports exclude with relative paths' , ( done ) => {
54+ host . writeMultipleFiles ( filesWithErrors ) ;
55+ const overrides : Partial < TslintBuilderOptions > = { exclude : [ 'src/foo.ts' ] } ;
56+
57+ runTargetSpec ( host , tslintTargetSpec , overrides ) . pipe (
58+ tap ( ( buildEvent ) => expect ( buildEvent . success ) . toBe ( true ) ) ,
59+ ) . toPromise ( ) . then ( done , done . fail ) ;
60+ } , 30000 ) ;
61+
62+ it ( `supports exclude with paths starting with './'` , ( done ) => {
63+ host . writeMultipleFiles ( filesWithErrors ) ;
64+ const overrides : Partial < TslintBuilderOptions > = { exclude : [ './src/foo.ts' ] } ;
65+
66+ runTargetSpec ( host , tslintTargetSpec , overrides ) . pipe (
67+ tap ( ( buildEvent ) => expect ( buildEvent . success ) . toBe ( true ) ) ,
68+ ) . toPromise ( ) . then ( done , done . fail ) ;
69+ } , 30000 ) ;
70+
5371 it ( 'supports fix' , ( done ) => {
5472 host . writeMultipleFiles ( filesWithErrors ) ;
5573 const overrides : Partial < TslintBuilderOptions > = { fix : true } ;
0 commit comments