File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 description : ' Tag to delete'
88 required : true
99 type : string
10- secrets :
11- GITHUB_TOKEN :
12- required : true
1310 workflow_dispatch :
1411 inputs :
1512 tag :
Original file line number Diff line number Diff line change 2121 packages : write # For publishing packages
2222 uses : Checkmarx/ast-cli-javascript-wrapper/.github/workflows/release.yml@abe950ede3b052dfc236f730cf11cc290af53d1c
2323 secrets :
24- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2524 ECHO_LIBRARIES_ACCESS_KEY : ${{ secrets.ECHO_LIBRARIES_ACCESS_KEY }}
Original file line number Diff line number Diff line change 2424 default : true
2525 type : boolean
2626 secrets :
27- GITHUB_TOKEN :
28- required : true
2927 ECHO_LIBRARIES_ACCESS_KEY :
3028 required : true
3129 workflow_dispatch :
6563 uses : Checkmarx/ast-cli-javascript-wrapper/.github/workflows/delete-packages-and-releases.yml@abe950ede3b052dfc236f730cf11cc290af53d1c
6664 with :
6765 tag : ${{ inputs.jsTag }}
68- secrets :
69- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7066 if : inputs.dev == true
7167 release :
7268 name : Release JavaScript Wrapper
Original file line number Diff line number Diff line change 1+ import { getLoggerWithFilePath , logger } from '../main/wrapper/loggerConfig' ;
2+ import * as fs from 'fs' ;
3+ import * as path from 'path' ;
4+
5+ describe ( 'Logger Configuration' , ( ) => {
6+ it ( 'should initialize logger with file path' , ( ) => {
7+ const tempDir = path . join ( __dirname , '../../tmp' ) ;
8+ if ( ! fs . existsSync ( tempDir ) ) {
9+ fs . mkdirSync ( tempDir , { recursive : true } ) ;
10+ }
11+
12+ const logFilePath = path . join ( tempDir , 'test.log' ) ;
13+
14+ // This should call configurationWithFile and cover line 4
15+ getLoggerWithFilePath ( logFilePath ) ;
16+
17+ expect ( logger ) . toBeDefined ( ) ;
18+ } ) ;
19+
20+ it ( 'should initialize logger without file path' , ( ) => {
21+ // This should call configurationWithoutFile
22+ getLoggerWithFilePath ( ) ;
23+
24+ expect ( logger ) . toBeDefined ( ) ;
25+ } ) ;
26+ } ) ;
You can’t perform that action at this time.
0 commit comments