mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
JS: Remove obsolete unit tests
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user