@@ -141,12 +141,15 @@ namespace ts.projectSystem {
141
141
checkNumberOfProjects ( projectService , { configuredProjects : 1 } ) ;
142
142
const p = configuredProjectAt ( projectService , 0 ) ;
143
143
checkProjectActualFiles ( p , [ file1 . path , tsconfig . path ] ) ;
144
+ checkWatchedFiles ( host , [ tsconfig . path , libFile . path , packageJson . path , "/a/b/bower_components" , "/a/b/node_modules" ] ) ;
144
145
145
146
installer . installAll ( /*expectedCount*/ 1 ) ;
146
147
147
148
checkNumberOfProjects ( projectService , { configuredProjects : 1 } ) ;
148
149
host . checkTimeoutQueueLengthAndRun ( 2 ) ;
149
150
checkProjectActualFiles ( p , [ file1 . path , jquery . path , tsconfig . path ] ) ;
151
+ // should not watch jquery
152
+ checkWatchedFiles ( host , [ tsconfig . path , libFile . path , packageJson . path , "/a/b/bower_components" , "/a/b/node_modules" ] ) ;
150
153
} ) ;
151
154
152
155
it ( "inferred project (typings installed)" , ( ) => {
@@ -188,7 +191,7 @@ namespace ts.projectSystem {
188
191
checkProjectActualFiles ( p , [ file1 . path ] ) ;
189
192
190
193
installer . installAll ( /*expectedCount*/ 1 ) ;
191
-
194
+ host . checkTimeoutQueueLengthAndRun ( 2 ) ;
192
195
checkNumberOfProjects ( projectService , { inferredProjects : 1 } ) ;
193
196
checkProjectActualFiles ( p , [ file1 . path , jquery . path ] ) ;
194
197
} ) ;
@@ -961,6 +964,7 @@ namespace ts.projectSystem {
961
964
assert . isTrue ( host . fileExists ( node . path ) , "typings for 'node' should be created" ) ;
962
965
assert . isTrue ( host . fileExists ( commander . path ) , "typings for 'commander' should be created" ) ;
963
966
967
+ host . checkTimeoutQueueLengthAndRun ( 2 ) ;
964
968
checkProjectActualFiles ( service . inferredProjects [ 0 ] , [ file . path , node . path , commander . path ] ) ;
965
969
} ) ;
966
970
@@ -1106,7 +1110,7 @@ namespace ts.projectSystem {
1106
1110
checkProjectActualFiles ( p , [ file1 . path ] ) ;
1107
1111
1108
1112
installer . installAll ( /*expectedCount*/ 1 ) ;
1109
-
1113
+ host . checkTimeoutQueueLengthAndRun ( 2 ) ;
1110
1114
checkNumberOfProjects ( projectService , { inferredProjects : 1 } ) ;
1111
1115
checkProjectActualFiles ( p , [ file1 . path , jquery . path ] ) ;
1112
1116
} ) ;
0 commit comments