@@ -11,7 +11,7 @@ const filePath = 'dedupData.yaml';
11
11
export default function middleware (
12
12
13
13
) : ( req : Request , res : Response , next : NextFunction ) => void {
14
- console . log ( "Inside middleware..." ) ;
14
+ // console.log("Inside middleware...");
15
15
16
16
// @ts -ignore
17
17
fs . access ( filePath , fs . constants . F_OK , ( err ) => {
@@ -71,16 +71,16 @@ export function afterMiddleware(req: Request, res: Response) {
71
71
fs . writeFileSync ( filePath , yamlData , 'utf-8' ) ;
72
72
73
73
// Log to the console
74
- console . log ( "Executed lines by file:" , executedLinesByFile ) ;
75
- console . log ( "Data has been appended and logged to" , filePath ) ;
74
+ // console.log("Executed lines by file:", executedLinesByFile);
75
+ // console.log("Data has been appended and logged to", filePath);
76
76
}
77
77
78
78
// isJsonValid checks whether o is a valid JSON or not
79
79
80
80
let count = 0 ;
81
81
const executedLinebyEachTest = new Array ( ) ;
82
82
function GetCoverage ( ) {
83
- console . log ( "Inside GetCoverage " ) ;
83
+ console . log ( "Calculating per request coverage... " ) ;
84
84
count ++ ;
85
85
let executedLinesByFile = { } ;
86
86
// iterate over global.__coverage__
@@ -123,7 +123,7 @@ function GetCoverage() {
123
123
// @ts -ignore
124
124
executedLinebyEachTest . push ( { ...hitCounts } ) ;
125
125
126
- console . log ( "Executed lines by file:" , executedLinesByFile ) ;
126
+ // console.log("Executed lines by file:", executedLinesByFile);
127
127
// extract s from the coverage data
128
128
}
129
129
return executedLinesByFile ;
0 commit comments