Skip to content

Commit 4b2025d

Browse files
committed
JS: Remove obsolete unit tests
1 parent 2aad147 commit 4b2025d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

javascript/extractor/test/com/semmle/js/extractor/test/AutoBuildTests.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -195,15 +195,6 @@ public void basicTest() throws IOException {
195195

196196
@Test
197197
public void typescript() throws IOException {
198-
envVars.put("LGTM_INDEX_TYPESCRIPT", "basic");
199-
addFile(true, LGTM_SRC, "tst.ts");
200-
addFile(true, LGTM_SRC, "tst.tsx");
201-
runTest();
202-
}
203-
204-
@Test(expected = UserError.class)
205-
public void typescriptWrongConfig() throws IOException {
206-
envVars.put("LGTM_INDEX_TYPESCRIPT", "true");
207198
addFile(true, LGTM_SRC, "tst.ts");
208199
addFile(true, LGTM_SRC, "tst.tsx");
209200
runTest();
@@ -212,7 +203,6 @@ public void typescriptWrongConfig() throws IOException {
212203
@Test
213204
public void skipJsFilesDerivedFromTypeScriptFiles() throws IOException {
214205
// JS-derived files (.js, .cjs, .mjs, .jsx, .cjsx, .mjsx) should be skipped when TS indexing
215-
envVars.put("LGTM_INDEX_TYPESCRIPT", "basic");
216206
// Add TypeScript sources
217207
addFile(true, LGTM_SRC, "foo.ts");
218208
addFile(true, LGTM_SRC, "bar.tsx");
@@ -230,7 +220,6 @@ public void skipJsFilesDerivedFromTypeScriptFiles() throws IOException {
230220

231221
@Test
232222
public void skipFilesInTsconfigOutDir() throws IOException {
233-
envVars.put("LGTM_INDEX_TYPESCRIPT", "basic");
234223
// Files under outDir in tsconfig.json should be excluded
235224
// Create tsconfig.json with outDir set to "dist"
236225
addFile(true, LGTM_SRC, "tsconfig.json");
@@ -511,15 +500,6 @@ public void hiddenFiles() throws IOException {
511500
runTest();
512501
}
513502

514-
@Test
515-
public void noTypescriptExtraction() throws IOException {
516-
envVars.put("LGTM_INDEX_TYPESCRIPT", "none");
517-
addFile(false, LGTM_SRC, "tst.ts");
518-
addFile(false, LGTM_SRC, "sub.js", "tst.ts");
519-
addFile(false, LGTM_SRC, "tst.js.ts");
520-
runTest();
521-
}
522-
523503
@Test
524504
public void includeNonExistentFile() throws IOException {
525505
envVars.put("LGTM_INDEX_INCLUDE", "tst.js");

0 commit comments

Comments
 (0)