diff --git a/testTs/import_tests.json b/testTs/import_tests.json index c41307e61cf78529cbdb69033d69b7d7bea555a5..5bd054ac6d9211b77a42df2b29c97e5d3b896320 100644 --- a/testTs/import_tests.json +++ b/testTs/import_tests.json @@ -7,5 +7,12 @@ "./testTs/test/externalModules/typeOnly/importDefaultNamedType/importDefaultNamedType.ts", "./testTs/test/moduleResolution/scopedPackages/scopedPackages.ts", "./testTs/test/moduleResolution/scopedPackagesClassic/scopedPackagesClassic.ts" + ], + "m_parameter" : [ + "./testTs/test/internalModules/DeclarationMerging/AmbientModuleAndNonAmbientFunctionWithTheSameNameAndCommonRoot.ts", + "./testTs/test/jsdoc/constructorTagOnClassConstructor.ts", + "./testTs/test/jsdoc/declarations/jsDeclarationsThisTypes.ts", + "./testTs/test/declarationEmit/declarationEmitWorkWithInlineComments.ts", + "./testTs/test/declarationEmit/exportDefaultNamespace.ts" ] } \ No newline at end of file diff --git a/testTs/run_testTs.py b/testTs/run_testTs.py index 74d42d7fdfe14eaf807e055a8f29fd5dd32a3c0b..ac698d68d847446847a7a5080eaeaea28ae7b642 100644 --- a/testTs/run_testTs.py +++ b/testTs/run_testTs.py @@ -78,9 +78,12 @@ def run_test(file, tool,flag = False): if not os.path.exists(out_dir_path): os.makedirs(out_dir_path) try: - command_os(f'node --expose-gc {tool} -m {file} --output-type') - except: - e = str(e) + if file in IMPORT_TEST['import'] + IMPORT_TEST['m_parameter']: + command_os(['node', '--expose-gc', tool, '-m', file, '--output-type']) + else: + command_os(['node', '--expose-gc', tool, file, '--output-type']) + except BaseException as e: + print(e) if flag: for root,dirs,files in os.walk(ts_dir_path): for fi in files: