File tree Expand file tree Collapse file tree 7 files changed +3
-14
lines changed Expand file tree Collapse file tree 7 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 4040    "compile-tests" : " npm run clean && tsc -p . --outDir out" 
4141    "watch-tests" : " tsc -p . -w --outDir out" 
4242    "lint" : " eslint . --ext ts" 
43-     "test" : " ts-mocha -p tsconfig.json ./**/**.test.ts" 
43+     "test" : " rm -rf smelly-report.html &&  ts-mocha -p tsconfig.json ./**/**.test.ts" 
4444    "test:watch" : " nodemon --exec 'npm run test' --watch 'src/**' --ext 'ts' --delay 5" 
4545    "test:coverage" : " nyc --reporter=lcov ts-mocha -p tsconfig.json ts-node/register ./**/**.test.ts" 
4646    "test:mutation" : " stryker run" 
Original file line number Diff line number Diff line change 1- //@ts -nocheck 
21import  path  from  'path' ; 
3- //@ts -nocheck 
42import  fs ,  {  readdir  }  from  'node:fs/promises' ; 
5- //@ts -nocheck 
63import  {  SmellDetector ,  SupportedLanguages  }  from  '../index' ; 
74import  {  join  }  from  'node:path' ; 
85import  {  SmellsAggreagtor ,  SmellsList  }  from  '../reporters/Html' ; 
96
107const  args  =  process . argv ; 
118const  fileName  =  args [ 2 ] ; 
12- const  language  =  args [ 3 ]  ||  SupportedLanguages . javascript ; 
9+ const  language  =  args [ 3 ]  as   SupportedLanguages   ||  SupportedLanguages . javascript ; 
1310const  report  =  args [ 4 ] ; 
1411
1512if  ( ! fileName )  { 
Original file line number Diff line number Diff line change 1- // @ts -ignore 
21import  fs  from  'node:fs/promises' ; 
32
43export  interface  Input  { 
Original file line number Diff line number Diff line change 1- // @ts -ignore 
21import  fs  from  'node:fs/promises' ; 
32import  {  ExportOptions  }  from  "./Html" ; 
43
Original file line number Diff line number Diff line change 1- // @ts -nocheck 
21import  {  exec  }  from  "child_process" ; 
32import  {  promisify  }  from  "util" ; 
43import  *  as  assert  from  'assert' ; 
@@ -8,7 +7,7 @@ const execPromise = promisify(exec);
87describe ( 'cli' ,  ( )  =>  { 
98
109  it ( 'find no smells for a given path' ,  async  ( )  =>  { 
11-     const  {  stdout,  stderr  }  =  await  execPromise ( `npm run cli -- fake-data/no-smells/ javascript --report=html` ) ; 
10+     const  {  stdout }  =  await  execPromise ( `npm run cli -- fake-data/no-smells/ javascript --report=html` ) ; 
1211
1312    assert . equal ( true ,  stdout . includes ( "Report HTML generated" ) ) ; 
1413  } ) ; 
Original file line number Diff line number Diff line change 1- //@ts -nocheck 
21import  *  as  assert  from  'assert' ; 
32import  {  suite ,  test  }  from  'mocha' ; 
43import  {  SmellDetector  }  from  '../src/index' ; 
Original file line number Diff line number Diff line change 99		],
1010		"sourceMap" : true ,
1111		"rootDir" : " ." 
12- 		"typeRoots" : [
13- 			" ./types" 
14- 		],
1512		"strict" : true , /*  enable all strict type-checking options */ 
1613		"declaration" : true ,
1714		"declarationDir" : " ./types" 
18- 		"types" : [" node" 
1915		/*  Additional Checks */ 
2016		//  "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */
2117		//  "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments