Skip to content

Commit

Permalink
Merge branch 'main' into debug_node14
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak160 committed May 13, 2024
2 parents cf4851c + 37c90a3 commit a782fa5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions v2/dedup/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { log } from "console";
import { Request, Response, NextFunction } from "express";
const fs = require('fs');
const yaml = require('js-yaml');
Expand All @@ -14,7 +15,11 @@ export default function middleware(

// @ts-ignore
fs.access(filePath, fs.constants.F_OK, (err) => {
<<<<<<< debug_node14

Check failure on line 18 in v2/dedup/middleware.ts

View workflow job for this annotation

GitHub Actions / Run Type Check & Linters

Merge conflict marker encountered.
// console.log(err ? 'File does not exist' : 'File exists');
=======

Check failure on line 20 in v2/dedup/middleware.ts

View workflow job for this annotation

GitHub Actions / Run Type Check & Linters

Merge conflict marker encountered.

>>>>>>> main

Check failure on line 22 in v2/dedup/middleware.ts

View workflow job for this annotation

GitHub Actions / Run Type Check & Linters

Merge conflict marker encountered.
if (err) {
// Create the file if it doesn't exist
fs.writeFileSync(filePath, '', 'utf-8');
Expand Down Expand Up @@ -80,7 +85,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 @@ -123,7 +128,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 a782fa5

Please sign in to comment.