@@ -41,7 +41,7 @@ describe('Tslint Target', () => {
41
41
) . toPromise ( ) . then ( done , done . fail ) ;
42
42
} , 30000 ) ;
43
43
44
- it ( 'supports exclude' , ( done ) => {
44
+ it ( 'supports exclude with glob ' , ( done ) => {
45
45
host . writeMultipleFiles ( filesWithErrors ) ;
46
46
const overrides : Partial < TslintBuilderOptions > = { exclude : [ '**/foo.ts' ] } ;
47
47
@@ -50,6 +50,24 @@ describe('Tslint Target', () => {
50
50
) . toPromise ( ) . then ( done , done . fail ) ;
51
51
} , 30000 ) ;
52
52
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
+
53
71
it ( 'supports fix' , ( done ) => {
54
72
host . writeMultipleFiles ( filesWithErrors ) ;
55
73
const overrides : Partial < TslintBuilderOptions > = { fix : true } ;
0 commit comments