Refactor project references and source map tsserver tests so they are inline for easy editing (#42782)

This commit is contained in:
Sheetal Nandi
2021-02-12 14:32:23 -08:00
committed by GitHub
parent 5deb676b3a
commit e98f6b07ab
4 changed files with 4453 additions and 1112 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ interface Array<T> { length: number; [n: number]: T; }`
checkMap(caption, arrayToMap(actual, identity), expected, /*eachKeyCount*/ undefined);
}
export function checkWatchedFiles(host: TestServerHost, expectedFiles: string[], additionalInfo?: string) {
export function checkWatchedFiles(host: TestServerHost, expectedFiles: readonly string[], additionalInfo?: string) {
checkMap(`watchedFiles:: ${additionalInfo || ""}::`, host.watchedFiles, expectedFiles, /*eachKeyCount*/ undefined);
}
+1
View File
@@ -189,6 +189,7 @@
"unittests/tsserver/projectReferenceCompileOnSave.ts",
"unittests/tsserver/projectReferenceErrors.ts",
"unittests/tsserver/projectReferences.ts",
"unittests/tsserver/projectReferencesSourcemap.ts",
"unittests/tsserver/projects.ts",
"unittests/tsserver/refactors.ts",
"unittests/tsserver/reload.ts",
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff