diff --git a/javascript/extractor/test/com/semmle/js/extractor/test/AutoBuildTests.java b/javascript/extractor/test/com/semmle/js/extractor/test/AutoBuildTests.java index 5bbb0bb292e..b972355d91d 100644 --- a/javascript/extractor/test/com/semmle/js/extractor/test/AutoBuildTests.java +++ b/javascript/extractor/test/com/semmle/js/extractor/test/AutoBuildTests.java @@ -195,15 +195,6 @@ public class AutoBuildTests { @Test public void typescript() throws IOException { - envVars.put("LGTM_INDEX_TYPESCRIPT", "basic"); - addFile(true, LGTM_SRC, "tst.ts"); - addFile(true, LGTM_SRC, "tst.tsx"); - runTest(); - } - - @Test(expected = UserError.class) - public void typescriptWrongConfig() throws IOException { - envVars.put("LGTM_INDEX_TYPESCRIPT", "true"); addFile(true, LGTM_SRC, "tst.ts"); addFile(true, LGTM_SRC, "tst.tsx"); runTest(); @@ -212,7 +203,6 @@ public class AutoBuildTests { @Test public void skipJsFilesDerivedFromTypeScriptFiles() throws IOException { // JS-derived files (.js, .cjs, .mjs, .jsx, .cjsx, .mjsx) should be skipped when TS indexing - envVars.put("LGTM_INDEX_TYPESCRIPT", "basic"); // Add TypeScript sources addFile(true, LGTM_SRC, "foo.ts"); addFile(true, LGTM_SRC, "bar.tsx"); @@ -230,7 +220,6 @@ public class AutoBuildTests { @Test public void skipFilesInTsconfigOutDir() throws IOException { - envVars.put("LGTM_INDEX_TYPESCRIPT", "basic"); // Files under outDir in tsconfig.json should be excluded // Create tsconfig.json with outDir set to "dist" addFile(true, LGTM_SRC, "tsconfig.json"); @@ -511,15 +500,6 @@ public class AutoBuildTests { runTest(); } - @Test - public void noTypescriptExtraction() throws IOException { - envVars.put("LGTM_INDEX_TYPESCRIPT", "none"); - addFile(false, LGTM_SRC, "tst.ts"); - addFile(false, LGTM_SRC, "sub.js", "tst.ts"); - addFile(false, LGTM_SRC, "tst.js.ts"); - runTest(); - } - @Test public void includeNonExistentFile() throws IOException { envVars.put("LGTM_INDEX_INCLUDE", "tst.js");