From 66476e3a4dcfcf0bec6f8e8d53dcd3510a3cd005 Mon Sep 17 00:00:00 2001 From: zhengbli Date: Fri, 6 May 2016 11:03:45 -0700 Subject: [PATCH] Add test for explicitly added dotted files --- tests/cases/unittests/tsconfigParsing.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/cases/unittests/tsconfigParsing.ts b/tests/cases/unittests/tsconfigParsing.ts index 7cb72f47230..ec025e0b210 100644 --- a/tests/cases/unittests/tsconfigParsing.ts +++ b/tests/cases/unittests/tsconfigParsing.ts @@ -157,6 +157,18 @@ namespace ts { ["/apath/test.ts", "/apath/.git/a.ts", "/apath/.b.ts", "/apath/..c.ts"], ["/apath/test.ts"] ) - }) + }); + + it("allow dotted files and folders when explicitly requested", () => { + assertParseFileList( + `{ + "files": ["/apath/.git/a.ts", "/apath/.b.ts", "/apath/..c.ts"] + }`, + "tsconfig.json", + "/apath", + ["/apath/test.ts", "/apath/.git/a.ts", "/apath/.b.ts", "/apath/..c.ts"], + ["/apath/.git/a.ts", "/apath/.b.ts", "/apath/..c.ts"] + ) + }); }); }