Skip to content

Commit 49913fd

Browse files
committed
Merge pull request microsoft#8501 from zhengbli/ignroeHiddenFilesAddTest
Add test for explicitly added dotted files
2 parents bc6d6ea + 66476e3 commit 49913fd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/cases/unittests/tsconfigParsing.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,18 @@ namespace ts {
157157
["/apath/test.ts", "/apath/.git/a.ts", "/apath/.b.ts", "/apath/..c.ts"],
158158
["/apath/test.ts"]
159159
)
160-
})
160+
});
161+
162+
it("allow dotted files and folders when explicitly requested", () => {
163+
assertParseFileList(
164+
`{
165+
"files": ["/apath/.git/a.ts", "/apath/.b.ts", "/apath/..c.ts"]
166+
}`,
167+
"tsconfig.json",
168+
"/apath",
169+
["/apath/test.ts", "/apath/.git/a.ts", "/apath/.b.ts", "/apath/..c.ts"],
170+
["/apath/.git/a.ts", "/apath/.b.ts", "/apath/..c.ts"]
171+
)
172+
});
161173
});
162174
}

0 commit comments

Comments
 (0)