@@ -720,4 +720,41 @@ declare namespace NodeJS {
720720 } ,
721721 ] ,
722722 } ) ;
723+
724+ verifyTscWatch ( {
725+ scenario,
726+ subScenario : "when dir watcher is invoked without file change" ,
727+ commandLineArgs : [ "--w" , "--traceResolution" , "--extendedDiagnostics" ] ,
728+ sys : ( ) =>
729+ TestServerHost . createWatchedSystem ( {
730+ "/home/src/workspaces/project/src/main.ts" : dedent `
731+ import { y } from "./app/services/generated";
732+ const x = y;
733+ ` ,
734+ "/home/src/workspaces/project/src/app/services/generated/index.ts" : "export const y = 10;" ,
735+ "/home/src/workspaces/project/tsconfig.json" : "{}" ,
736+ } ) ,
737+ edits : [
738+ {
739+ caption : "delete folder" ,
740+ edit : sys => sys . deleteFolder ( "/home/src/workspaces/project/src/app/services/generated" , /*recursive*/ true ) ,
741+ timeouts : sys => {
742+ sys . runQueuedTimeoutCallbacks ( ) ;
743+ sys . runQueuedTimeoutCallbacks ( ) ;
744+ } ,
745+ } ,
746+ {
747+ caption : "generate folder" ,
748+ edit : sys =>
749+ sys . ensureFileOrFolder ( {
750+ path : "/home/src/workspaces/project/src/app/services/generated/index.ts" ,
751+ content : "export const y = 10;" ,
752+ } , /*ignoreWatchInvokedWithTriggerAsFileCreate*/ true ) ,
753+ timeouts : sys => {
754+ sys . runQueuedTimeoutCallbacks ( ) ;
755+ sys . runQueuedTimeoutCallbacks ( ) ;
756+ } ,
757+ } ,
758+ ] ,
759+ } ) ;
723760} ) ;
0 commit comments