@@ -27,6 +27,17 @@ namespace ts.tscWatch {
2727 changes,
2828 baselineIncremental
2929 } ) ;
30+ verifyTscWatch ( {
31+ scenario : "emitAndErrorUpdates" ,
32+ subScenario : `incremental/${ subScenario } ` ,
33+ commandLineArgs : [ "--w" , "--i" ] ,
34+ sys : ( ) => createWatchedSystem (
35+ [ ...files ( ) , configFile ( ) , lib ?.( ) || libFile ] ,
36+ { currentDirectory : currentDirectory || projectRoot }
37+ ) ,
38+ changes,
39+ baselineIncremental
40+ } ) ;
3041 }
3142
3243 function changeCompilerOptions ( input : VerifyEmitAndErrorUpdates , additionalOptions : CompilerOptions ) : File {
@@ -97,6 +108,16 @@ console.log(b.c.d);`
97108 subScenario : `deepImportChanges/${ subScenario } ` ,
98109 files : ( ) => [ aFile , bFile , cFile ] ,
99110 changes : [
111+ {
112+ caption : "Rename property d to d2 of class C to initialize signatures" ,
113+ change : sys => sys . writeFile ( cFile . path , cFile . content . replace ( "d" , "d2" ) ) ,
114+ timeouts : runQueuedTimeoutCallbacks ,
115+ } ,
116+ {
117+ caption : "Rename property d2 to d of class C to revert back to original text" ,
118+ change : sys => sys . writeFile ( cFile . path , cFile . content . replace ( "d2" , "d" ) ) ,
119+ timeouts : runQueuedTimeoutCallbacks ,
120+ } ,
100121 {
101122 caption : "Rename property d to d2 of class C" ,
102123 change : sys => sys . writeFile ( cFile . path , cFile . content . replace ( "d" , "d2" ) ) ,
@@ -197,11 +218,21 @@ getPoint().c.x;`
197218 subScenario : "file not exporting a deep multilevel import that changes" ,
198219 files : ( ) => [ aFile , bFile , cFile , dFile , eFile ] ,
199220 changes : [
221+ {
222+ caption : "Rename property x2 to x of interface Coords to initialize signatures" ,
223+ change : sys => sys . writeFile ( aFile . path , aFile . content . replace ( "x2" , "x" ) ) ,
224+ timeouts : runQueuedTimeoutCallbacks ,
225+ } ,
226+ {
227+ caption : "Rename property x to x2 of interface Coords to revert back to original text" ,
228+ change : sys => sys . writeFile ( aFile . path , aFile . content . replace ( "x: number" , "x2: number" ) ) ,
229+ timeouts : runQueuedTimeoutCallbacks ,
230+ } ,
200231 {
201232 caption : "Rename property x2 to x of interface Coords" ,
202233 change : sys => sys . writeFile ( aFile . path , aFile . content . replace ( "x2" , "x" ) ) ,
203234 timeouts : runQueuedTimeoutCallbacks ,
204- }
235+ } ,
205236 ]
206237 } ) ;
207238 } ) ;
@@ -260,6 +291,16 @@ export class Data {
260291 files : ( ) => [ lib1ToolsInterface , lib1ToolsPublic , app , lib2Public , lib1Public , ...files ] ,
261292 configFile : ( ) => config ,
262293 changes : [
294+ {
295+ caption : "Rename property title to title2 of interface ITest to initialize signatures" ,
296+ change : sys => sys . writeFile ( lib1ToolsInterface . path , lib1ToolsInterface . content . replace ( "title" , "title2" ) ) ,
297+ timeouts : runQueuedTimeoutCallbacks ,
298+ } ,
299+ {
300+ caption : "Rename property title2 to title of interface ITest to revert back to original text" ,
301+ change : sys => sys . writeFile ( lib1ToolsInterface . path , lib1ToolsInterface . content . replace ( "title2" , "title" ) ) ,
302+ timeouts : runQueuedTimeoutCallbacks ,
303+ } ,
263304 {
264305 caption : "Rename property title to title2 of interface ITest" ,
265306 change : sys => sys . writeFile ( lib1ToolsInterface . path , lib1ToolsInterface . content . replace ( "title" , "title2" ) ) ,
0 commit comments