@@ -29,14 +29,12 @@ describe('NodeJS Profiler Integration', () => {
2929
3030 // Clean up trace files from previous test runs
3131 const traceFilesDir = path . join ( process . cwd ( ) , 'tmp' , 'int' , 'utils' ) ;
32- // eslint-disable-next-line n/no-sync
32+
3333 if ( fs . existsSync ( traceFilesDir ) ) {
34- // eslint-disable-next-line n/no-sync
3534 const files = fs . readdirSync ( traceFilesDir ) ;
3635 // eslint-disable-next-line functional/no-loop-statements
3736 for ( const file of files ) {
3837 if ( file . endsWith ( '.json' ) || file . endsWith ( '.jsonl' ) ) {
39- // eslint-disable-next-line n/no-sync
4038 fs . unlinkSync ( path . join ( traceFilesDir , file ) ) ;
4139 }
4240 }
@@ -266,7 +264,7 @@ describe('NodeJS Profiler Integration', () => {
266264 expect ( fileName ) . toMatch ( / ^ t r a c e \. \d { 8 } - \d { 6 } - \d { 3 } (?: \. \d + ) { 3 } \. j s o n l $ / ) ;
267265
268266 const groupIdDirPath = path . dirname ( filePath ) ;
269- // eslint-disable-next-line n/no-sync
267+
270268 expect ( fs . existsSync ( groupIdDirPath ) ) . toBeTrue ( ) ;
271269
272270 profiler . close ( ) ;
@@ -288,9 +286,9 @@ describe('NodeJS Profiler Integration', () => {
288286 const groupId = path . basename ( dirPath ) ;
289287
290288 expect ( groupId ) . toMatch ( ID_PATTERNS . TIME_ID ) ;
291- // eslint-disable-next-line n/no-sync
289+
292290 expect ( fs . existsSync ( dirPath ) ) . toBeTrue ( ) ;
293- // eslint-disable-next-line n/no-sync
291+
294292 expect ( fs . statSync ( dirPath ) . isDirectory ( ) ) . toBeTrue ( ) ;
295293
296294 profiler . close ( ) ;
0 commit comments