import {afterAll} from 'bun:test'

// close shared singleton clients after the whole run
afterAll(async () => {
  const [{redis}, {db}] = await Promise.all([
    import('./lib/redis'),
    import('./db/client'),
  ])
  await redis.quit()
  await db.$client.end()
})
