@@ -27,6 +27,17 @@ namespace ts.tscWatch {
27
27
changes,
28
28
baselineIncremental
29
29
} ) ;
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
+ } ) ;
30
41
}
31
42
32
43
function changeCompilerOptions ( input : VerifyEmitAndErrorUpdates , additionalOptions : CompilerOptions ) : File {
@@ -97,6 +108,16 @@ console.log(b.c.d);`
97
108
subScenario : `deepImportChanges/${ subScenario } ` ,
98
109
files : ( ) => [ aFile , bFile , cFile ] ,
99
110
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
+ } ,
100
121
{
101
122
caption : "Rename property d to d2 of class C" ,
102
123
change : sys => sys . writeFile ( cFile . path , cFile . content . replace ( "d" , "d2" ) ) ,
@@ -197,11 +218,21 @@ getPoint().c.x;`
197
218
subScenario : "file not exporting a deep multilevel import that changes" ,
198
219
files : ( ) => [ aFile , bFile , cFile , dFile , eFile ] ,
199
220
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
+ } ,
200
231
{
201
232
caption : "Rename property x2 to x of interface Coords" ,
202
233
change : sys => sys . writeFile ( aFile . path , aFile . content . replace ( "x2" , "x" ) ) ,
203
234
timeouts : runQueuedTimeoutCallbacks ,
204
- }
235
+ } ,
205
236
]
206
237
} ) ;
207
238
} ) ;
@@ -260,6 +291,16 @@ export class Data {
260
291
files : ( ) => [ lib1ToolsInterface , lib1ToolsPublic , app , lib2Public , lib1Public , ...files ] ,
261
292
configFile : ( ) => config ,
262
293
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
+ } ,
263
304
{
264
305
caption : "Rename property title to title2 of interface ITest" ,
265
306
change : sys => sys . writeFile ( lib1ToolsInterface . path , lib1ToolsInterface . content . replace ( "title" , "title2" ) ) ,
0 commit comments