File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,10 @@ namespace ts {
147
147
} ,
148
148
"/reference" : {
149
149
files : { "/secondary/b.ts" : moduleImporting ( "../primary/a" ) } ,
150
- references : [ "../primary" ]
150
+ references : [ "../primary" ] ,
151
+ config : {
152
+ files : [ "b.ts" ]
153
+ }
151
154
}
152
155
} ;
153
156
testProjectReferences ( spec , "/reference/tsconfig.json" , program => {
@@ -156,6 +159,26 @@ namespace ts {
156
159
} ) ;
157
160
} ) ;
158
161
162
+ it ( "does not error when the referenced project doesn't have composite:true if its a container project" , ( ) => {
163
+ const spec : TestSpecification = {
164
+ "/primary" : {
165
+ files : { "/primary/a.ts" : emptyModule } ,
166
+ references : [ ] ,
167
+ options : {
168
+ composite : false
169
+ }
170
+ } ,
171
+ "/reference" : {
172
+ files : { "/secondary/b.ts" : moduleImporting ( "../primary/a" ) } ,
173
+ references : [ "../primary" ] ,
174
+ }
175
+ } ;
176
+ testProjectReferences ( spec , "/reference/tsconfig.json" , program => {
177
+ const errs = program . getOptionsDiagnostics ( ) ;
178
+ assertNoErrors ( "Reports an error about 'composite' not being set" , errs ) ;
179
+ } ) ;
180
+ } ) ;
181
+
159
182
it ( "errors when the file list is not exhaustive" , ( ) => {
160
183
const spec : TestSpecification = {
161
184
"/primary" : {
You can’t perform that action at this time.
0 commit comments