-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for useFsEventsOnParentDirectory with fsWatchWithTimestamp
- Loading branch information
1 parent
a1c4732
commit a7a308d
Showing
4 changed files
with
300 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
175 changes: 175 additions & 0 deletions
175
...Watch/watchEnvironment/fsWatch/fsWatchWithTimestamp-false-useFsEventsOnParentDirectory.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false | ||
Input:: | ||
//// [/a/lib/lib.d.ts] | ||
/// <reference no-default-lib="true"/> | ||
interface Boolean {} | ||
interface Function {} | ||
interface CallableFunction {} | ||
interface NewableFunction {} | ||
interface IArguments {} | ||
interface Number { toExponential: any; } | ||
interface Object {} | ||
interface RegExp {} | ||
interface String { charAt: any; } | ||
interface Array<T> { length: number; [n: number]: T; } | ||
|
||
//// [/user/username/projects/myproject/main.ts] | ||
export const x = 10; | ||
|
||
//// [/user/username/projects/myproject/tsconfig.json] | ||
{ | ||
"files": [ | ||
"main.ts" | ||
] | ||
} | ||
|
||
|
||
/a/lib/tsc.js -w --extendedDiagnostics --watchFile useFsEventsOnParentDirectory | ||
Output:: | ||
[[90mHH:MM:SS AM[0m] Starting compilation in watch mode... | ||
|
||
Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false | ||
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 {"watchFile":5} Config file | ||
Synchronizing program | ||
CreatingProgramWith:: | ||
roots: ["/user/username/projects/myproject/main.ts"] | ||
options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} | ||
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 {"watchFile":5} Source file | ||
FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 {"watchFile":5} Source file | ||
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":5} Type roots | ||
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":5} Type roots | ||
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"watchFile":5} Type roots | ||
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"watchFile":5} Type roots | ||
[[90mHH:MM:SS AM[0m] Found 0 errors. Watching for file changes. | ||
|
||
|
||
|
||
//// [/user/username/projects/myproject/main.js] | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.x = void 0; | ||
exports.x = 10; | ||
|
||
|
||
|
||
PolledWatches:: | ||
/user/username/projects/myproject/node_modules/@types: *new* | ||
{"pollingInterval":500} | ||
/user/username/projects/node_modules/@types: *new* | ||
{"pollingInterval":500} | ||
|
||
FsWatches:: | ||
/a/lib: *new* | ||
{} | ||
/user/username/projects/myproject: *new* | ||
{} | ||
|
||
Program root files: [ | ||
"/user/username/projects/myproject/main.ts" | ||
] | ||
Program options: { | ||
"watch": true, | ||
"extendedDiagnostics": true, | ||
"configFilePath": "/user/username/projects/myproject/tsconfig.json" | ||
} | ||
Program structureReused: Not | ||
Program files:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/main.ts | ||
|
||
Semantic diagnostics in builder refreshed for:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/main.ts | ||
|
||
Shape signatures in builder refreshed for:: | ||
/a/lib/lib.d.ts (used version) | ||
/user/username/projects/myproject/main.ts (used version) | ||
|
||
exitCode:: ExitStatus.undefined | ||
|
||
Change:: emulate access | ||
|
||
Input:: | ||
|
||
Output:: | ||
FileWatcher:: Triggered with /user/username/projects/myproject/main.ts 1:: WatchInfo: /user/username/projects/myproject/main.ts 250 {"watchFile":5} Source file | ||
Scheduling update | ||
Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/main.ts 1:: WatchInfo: /user/username/projects/myproject/main.ts 250 {"watchFile":5} Source file | ||
|
||
|
||
Timeout callback:: count: 1 | ||
1: timerToUpdateProgram *new* | ||
|
||
Before running Timeout callback:: count: 1 | ||
1: timerToUpdateProgram | ||
|
||
After running Timeout callback:: count: 0 | ||
Output:: | ||
Synchronizing program | ||
|
||
|
||
|
||
|
||
exitCode:: ExitStatus.undefined | ||
|
||
Change:: modify file contents | ||
|
||
Input:: | ||
//// [/user/username/projects/myproject/main.ts] | ||
export const x = 10;export const y = 10; | ||
|
||
|
||
Output:: | ||
FileWatcher:: Triggered with /user/username/projects/myproject/main.ts 1:: WatchInfo: /user/username/projects/myproject/main.ts 250 {"watchFile":5} Source file | ||
Scheduling update | ||
Elapsed:: *ms FileWatcher:: Triggered with /user/username/projects/myproject/main.ts 1:: WatchInfo: /user/username/projects/myproject/main.ts 250 {"watchFile":5} Source file | ||
|
||
|
||
Timeout callback:: count: 1 | ||
2: timerToUpdateProgram *new* | ||
|
||
Before running Timeout callback:: count: 1 | ||
2: timerToUpdateProgram | ||
|
||
After running Timeout callback:: count: 0 | ||
Output:: | ||
Synchronizing program | ||
[[90mHH:MM:SS AM[0m] File change detected. Starting incremental compilation... | ||
|
||
CreatingProgramWith:: | ||
roots: ["/user/username/projects/myproject/main.ts"] | ||
options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} | ||
[[90mHH:MM:SS AM[0m] Found 0 errors. Watching for file changes. | ||
|
||
|
||
|
||
//// [/user/username/projects/myproject/main.js] | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.y = exports.x = void 0; | ||
exports.x = 10; | ||
exports.y = 10; | ||
|
||
|
||
|
||
|
||
Program root files: [ | ||
"/user/username/projects/myproject/main.ts" | ||
] | ||
Program options: { | ||
"watch": true, | ||
"extendedDiagnostics": true, | ||
"configFilePath": "/user/username/projects/myproject/tsconfig.json" | ||
} | ||
Program structureReused: Completely | ||
Program files:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/main.ts | ||
|
||
Semantic diagnostics in builder refreshed for:: | ||
/user/username/projects/myproject/main.ts | ||
|
||
Shape signatures in builder refreshed for:: | ||
/user/username/projects/myproject/main.ts (computed .d.ts) | ||
|
||
exitCode:: ExitStatus.undefined |
113 changes: 113 additions & 0 deletions
113
...cWatch/watchEnvironment/fsWatch/fsWatchWithTimestamp-true-useFsEventsOnParentDirectory.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
currentDirectory:: /user/username/projects/myproject useCaseSensitiveFileNames: false | ||
Input:: | ||
//// [/a/lib/lib.d.ts] | ||
/// <reference no-default-lib="true"/> | ||
interface Boolean {} | ||
interface Function {} | ||
interface CallableFunction {} | ||
interface NewableFunction {} | ||
interface IArguments {} | ||
interface Number { toExponential: any; } | ||
interface Object {} | ||
interface RegExp {} | ||
interface String { charAt: any; } | ||
interface Array<T> { length: number; [n: number]: T; } | ||
|
||
//// [/user/username/projects/myproject/main.ts] | ||
export const x = 10; | ||
|
||
//// [/user/username/projects/myproject/tsconfig.json] | ||
{ | ||
"files": [ | ||
"main.ts" | ||
] | ||
} | ||
|
||
|
||
/a/lib/tsc.js -w --extendedDiagnostics --watchFile useFsEventsOnParentDirectory | ||
Output:: | ||
[[90mHH:MM:SS AM[0m] Starting compilation in watch mode... | ||
|
||
Current directory: /user/username/projects/myproject CaseSensitiveFileNames: false | ||
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/tsconfig.json 2000 {"watchFile":5} Config file | ||
Synchronizing program | ||
CreatingProgramWith:: | ||
roots: ["/user/username/projects/myproject/main.ts"] | ||
options: {"watch":true,"extendedDiagnostics":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"} | ||
FileWatcher:: Added:: WatchInfo: /user/username/projects/myproject/main.ts 250 {"watchFile":5} Source file | ||
FileWatcher:: Added:: WatchInfo: /a/lib/lib.d.ts 250 {"watchFile":5} Source file | ||
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":5} Type roots | ||
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/myproject/node_modules/@types 1 {"watchFile":5} Type roots | ||
DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"watchFile":5} Type roots | ||
Elapsed:: *ms DirectoryWatcher:: Added:: WatchInfo: /user/username/projects/node_modules/@types 1 {"watchFile":5} Type roots | ||
[[90mHH:MM:SS AM[0m] Found 0 errors. Watching for file changes. | ||
|
||
|
||
|
||
//// [/user/username/projects/myproject/main.js] | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.x = void 0; | ||
exports.x = 10; | ||
|
||
|
||
|
||
PolledWatches:: | ||
/user/username/projects/myproject/node_modules/@types: *new* | ||
{"pollingInterval":500} | ||
/user/username/projects/node_modules/@types: *new* | ||
{"pollingInterval":500} | ||
|
||
FsWatches:: | ||
/a/lib: *new* | ||
{} | ||
/user/username/projects/myproject: *new* | ||
{} | ||
|
||
Program root files: [ | ||
"/user/username/projects/myproject/main.ts" | ||
] | ||
Program options: { | ||
"watch": true, | ||
"extendedDiagnostics": true, | ||
"configFilePath": "/user/username/projects/myproject/tsconfig.json" | ||
} | ||
Program structureReused: Not | ||
Program files:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/main.ts | ||
|
||
Semantic diagnostics in builder refreshed for:: | ||
/a/lib/lib.d.ts | ||
/user/username/projects/myproject/main.ts | ||
|
||
Shape signatures in builder refreshed for:: | ||
/a/lib/lib.d.ts (used version) | ||
/user/username/projects/myproject/main.ts (used version) | ||
|
||
exitCode:: ExitStatus.undefined | ||
|
||
Change:: emulate access | ||
|
||
Input:: | ||
|
||
Before running Timeout callback:: count: 0 | ||
|
||
After running Timeout callback:: count: 0 | ||
|
||
|
||
exitCode:: ExitStatus.undefined | ||
|
||
Change:: modify file contents | ||
|
||
Input:: | ||
//// [/user/username/projects/myproject/main.ts] | ||
export const x = 10;export const y = 10; | ||
|
||
|
||
Before running Timeout callback:: count: 0 | ||
|
||
After running Timeout callback:: count: 0 | ||
|
||
|
||
exitCode:: ExitStatus.undefined |