Skip to content

Commit 5403ce6

Browse files
committed
normalize path in harness
1 parent 843d08b commit 5403ce6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/harness/harness.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2015,7 +2015,7 @@ namespace Harness {
20152015

20162016
export function isDefaultLibraryFile(filePath: string): boolean {
20172017
// We need to make sure that the filePath is prefixed with "lib." not just containing "lib." and end with ".d.ts"
2018-
const fileName = ts.getBaseFileName(filePath);
2018+
const fileName = ts.getBaseFileName(ts.normalizeSlashes(filePath));
20192019
return ts.startsWith(fileName, "lib.") && ts.endsWith(fileName, ".d.ts");
20202020
}
20212021

0 commit comments

Comments
 (0)