mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-31 08:07:10 -05:00
More directory patterns for testing that we will care about (#53653)
This commit is contained in:
@@ -155,13 +155,10 @@ describe("unittests:: canWatch::", () => {
|
||||
const paths: ts.Path[] = [];
|
||||
let longestPathLength = 0;
|
||||
getPathsOfDifferentFoldersAt(osRoot as ts.Path);
|
||||
osRoot = ts.ensureTrailingDirectorySeparator(osRoot);
|
||||
const users = combinePaths(osRoot, "users");
|
||||
paths.push(users);
|
||||
getPathsOfDifferentFoldersAt(combinePaths(users, "username"));
|
||||
const user = combinePaths(osRoot, "user");
|
||||
paths.push(user);
|
||||
getPathsOfDifferentFoldersAt(combinePaths(user, "username"));
|
||||
getPathsOfDifferentFoldersWithUsers("users");
|
||||
getPathsOfDifferentFoldersWithUsers("user");
|
||||
getPathsOfDifferentFoldersWithUsers("usr");
|
||||
getPathsOfDifferentFoldersWithUsers("home");
|
||||
baselineOsRoot(paths, longestPathLength, baseline);
|
||||
Baseline.runBaseline(`canWatch/${scenario}${suffix}.baseline.md`, baseline.join("\r\n"));
|
||||
function getPathsOfDifferentFoldersAt(root: ts.Path) {
|
||||
@@ -174,6 +171,11 @@ describe("unittests:: canWatch::", () => {
|
||||
}
|
||||
longestPathLength = Math.max(ts.last(paths).length, longestPathLength);
|
||||
}
|
||||
function getPathsOfDifferentFoldersWithUsers(usersType: string) {
|
||||
const users = combinePaths(osRoot, usersType);
|
||||
paths.push(users);
|
||||
getPathsOfDifferentFoldersAt(combinePaths(users, "username"));
|
||||
}
|
||||
}
|
||||
|
||||
function combinePaths(path: string, addition: string, anotherAddition?: string): ts.Path {
|
||||
|
||||
Reference in New Issue
Block a user