@@ -195,15 +195,6 @@ public void basicTest() throws IOException {
195
195
196
196
@ Test
197
197
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" );
207
198
addFile (true , LGTM_SRC , "tst.ts" );
208
199
addFile (true , LGTM_SRC , "tst.tsx" );
209
200
runTest ();
@@ -212,7 +203,6 @@ public void typescriptWrongConfig() throws IOException {
212
203
@ Test
213
204
public void skipJsFilesDerivedFromTypeScriptFiles () throws IOException {
214
205
// JS-derived files (.js, .cjs, .mjs, .jsx, .cjsx, .mjsx) should be skipped when TS indexing
215
- envVars .put ("LGTM_INDEX_TYPESCRIPT" , "basic" );
216
206
// Add TypeScript sources
217
207
addFile (true , LGTM_SRC , "foo.ts" );
218
208
addFile (true , LGTM_SRC , "bar.tsx" );
@@ -230,7 +220,6 @@ public void skipJsFilesDerivedFromTypeScriptFiles() throws IOException {
230
220
231
221
@ Test
232
222
public void skipFilesInTsconfigOutDir () throws IOException {
233
- envVars .put ("LGTM_INDEX_TYPESCRIPT" , "basic" );
234
223
// Files under outDir in tsconfig.json should be excluded
235
224
// Create tsconfig.json with outDir set to "dist"
236
225
addFile (true , LGTM_SRC , "tsconfig.json" );
@@ -511,15 +500,6 @@ public void hiddenFiles() throws IOException {
511
500
runTest ();
512
501
}
513
502
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
-
523
503
@ Test
524
504
public void includeNonExistentFile () throws IOException {
525
505
envVars .put ("LGTM_INDEX_INCLUDE" , "tst.js" );
0 commit comments