@@ -68,28 +68,6 @@ describe('Karma Builder', () => {
68
68
await run . stop ( ) ;
69
69
} ) ;
70
70
71
- beforeEach ( ( ) => {
72
- host . writeMultipleFiles ( {
73
- 'src/app/services/test.service.spec.ts' : `
74
- describe('TestService', () => {
75
- it('should succeed', () => {
76
- expect(true).toBe(true);
77
- });
78
- });` ,
79
- 'src/app/failing.service.spec.ts' : `
80
- describe('FailingService', () => {
81
- it('should be ignored', () => {
82
- expect(true).toBe(false);
83
- });
84
- });` ,
85
- 'src/app/property.pipe.spec.ts' : `
86
- describe('PropertyPipe', () => {
87
- it('should succeed', () => {
88
- expect(true).toBe(true);
89
- });
90
- });` ,
91
- } ) ;
92
- } ) ;
93
71
[
94
72
{
95
73
test : 'relative path from workspace to spec' ,
@@ -119,8 +97,29 @@ describe('Karma Builder', () => {
119
97
test : 'glob with spec suffix' ,
120
98
input : [ '**/*.pipe.spec.ts' , '**/*.pipe.spec.ts' , '**/*test.service.spec.ts' ] ,
121
99
} ,
122
- ] . forEach ( options => {
123
- it ( `should work with ${ options . test } ` , async ( ) => {
100
+ ] . forEach ( ( options , index ) => {
101
+ it ( `should work with ${ options . test } (${ index } )` , async ( ) => {
102
+ host . writeMultipleFiles ( {
103
+ 'src/app/services/test.service.spec.ts' : `
104
+ describe('TestService', () => {
105
+ it('should succeed', () => {
106
+ expect(true).toBe(true);
107
+ });
108
+ });` ,
109
+ 'src/app/failing.service.spec.ts' : `
110
+ describe('FailingService', () => {
111
+ it('should be ignored', () => {
112
+ expect(true).toBe(false);
113
+ });
114
+ });` ,
115
+ 'src/app/property.pipe.spec.ts' : `
116
+ describe('PropertyPipe', () => {
117
+ it('should succeed', () => {
118
+ expect(true).toBe(true);
119
+ });
120
+ });` ,
121
+ } ) ;
122
+
124
123
const overrides = {
125
124
include : options . input ,
126
125
} ;
@@ -137,7 +136,7 @@ describe('Karma Builder', () => {
137
136
await expectAsync ( run . result ) . toBeResolvedTo ( jasmine . objectContaining ( { success : true } ) ) ;
138
137
139
138
await run . stop ( ) ;
140
- } , 30000 ) ;
139
+ } ) ;
141
140
} ) ;
142
141
} ) ;
143
142
} ) ;
0 commit comments