File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -265,6 +265,21 @@ public void skipFilesInTsconfigOutDirPointingToSourceRoot() throws IOException {
265
265
runTest ();
266
266
}
267
267
268
+ @ Test
269
+ public void skipFilesInTsconfigOutDirWithRelativePath () throws IOException {
270
+ // Test that outDir with relative path "somedir/.." (resolves to root) is ignored
271
+ addFile (true , LGTM_SRC , "tsconfig.json" );
272
+ Path config = Paths .get (LGTM_SRC .toString (), "tsconfig.json" );
273
+ Files .write (config ,
274
+ "{\" compilerOptions\" :{\" outDir\" :\" somedir/..\" }}" .getBytes (StandardCharsets .UTF_8 ));
275
+
276
+ // All files should be extracted since outDir resolving to root should be ignored
277
+ addFile (true , LGTM_SRC , "src" , "app.ts" );
278
+ addFile (true , LGTM_SRC , "main.js" );
279
+
280
+ runTest ();
281
+ }
282
+
268
283
@ Test
269
284
public void includeFile () throws IOException {
270
285
envVars .put ("LGTM_INDEX_INCLUDE" , "tst.js" );
You can’t perform that action at this time.
0 commit comments