Skip to content

Commit

Permalink
fix: req per coverage for docker
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Shyngle <[email protected]>
  • Loading branch information
Sarthak160 committed May 13, 2024
1 parent 11f9806 commit 906c03d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions v2/dedup/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function middleware(

// @ts-ignore
fs.access(filePath, fs.constants.F_OK, (err) => {
console.log(err ? 'File does not exist' : 'File exists');
// console.log(err ? 'File does not exist' : 'File exists');
if (err) {
// Create the file if it doesn't exist
fs.writeFileSync(filePath, '', 'utf-8');
Expand Down Expand Up @@ -61,7 +61,6 @@ export function afterMiddleware(req: Request, res: Response) {
console.error('Expected an array for existingData, but got:', typeof existingData);
existingData = []; // Reset to an empty array or handle accordingly
}
console.log("CURRENT DATA", currentData);

// Add or update the entry for the current id
existingData.push(currentData);
Expand All @@ -82,7 +81,7 @@ export function afterMiddleware(req: Request, res: Response) {
let count = 0;
const executedLinebyEachTest = new Array();
function GetCoverage() {
console.log("Inside GetCoverage");
// console.log("Inside GetCoverage");
count++;
let executedLinesByFile = {};
// iterate over global.__coverage__
Expand Down Expand Up @@ -125,7 +124,7 @@ function GetCoverage() {
// @ts-ignore
executedLinebyEachTest.push({ ...hitCounts });

console.log("Executed lines by file:", executedLinesByFile);
// console.log("Executed lines by file:", executedLinesByFile);
// extract s from the coverage data
}
return executedLinesByFile;
Expand Down

0 comments on commit 906c03d

Please sign in to comment.