1- import { renderHook , act } from '@testing-library/react'
2- import { describe , it , expect , beforeEach } from 'vitest'
1+ import { act , renderHook } from '@testing-library/react'
2+ import { beforeEach , describe , expect , it } from 'vitest'
33import { useBackgroundJobs } from './useBackgroundJobs'
44import type { BackgroundJob } from '../lib/schemas'
55
@@ -302,7 +302,7 @@ describe('useBackgroundJobs', () => {
302302 title : 'Session 2 Job' ,
303303 } )
304304
305- let firstSessionResult = renderHook ( ( ) => useBackgroundJobs ( ) )
305+ const firstSessionResult = renderHook ( ( ) => useBackgroundJobs ( ) )
306306
307307 expect ( firstSessionResult . result . current . jobs ) . toHaveLength ( 0 )
308308 expect ( localStorage . getItem ( STORAGE_KEY ) ) . toBeNull ( )
@@ -319,7 +319,7 @@ describe('useBackgroundJobs', () => {
319319 expect ( firstSessionResult . result . current . jobs ) . toHaveLength ( 2 )
320320 firstSessionResult . unmount ( )
321321
322- let secondSessionResult = renderHook ( ( ) => useBackgroundJobs ( ) )
322+ const secondSessionResult = renderHook ( ( ) => useBackgroundJobs ( ) )
323323 expect ( secondSessionResult . result . current . jobs ) . toHaveLength ( 2 )
324324 expect (
325325 secondSessionResult . result . current . getJobById ( 'browser-session-alpha' ) ,
@@ -350,7 +350,7 @@ describe('useBackgroundJobs', () => {
350350
351351 secondSessionResult . unmount ( )
352352
353- let thirdSessionResult = renderHook ( ( ) => useBackgroundJobs ( ) )
353+ const thirdSessionResult = renderHook ( ( ) => useBackgroundJobs ( ) )
354354 expect ( thirdSessionResult . result . current . jobs ) . toHaveLength ( 1 )
355355
356356 const persistedJob = thirdSessionResult . result . current . getJobById (
0 commit comments