Skip to content

Commit

Permalink
Merge branch 'main' into debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak160 authored May 13, 2024
2 parents 906c03d + bf86665 commit 1286737
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 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');

if (err) {
// Create the file if it doesn't exist
fs.writeFileSync(filePath, '', 'utf-8');
Expand Down Expand Up @@ -81,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 @@ -124,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 1286737

Please sign in to comment.