import { afterAll } from 'bun:test';
import { useLocalKysely } from './local';

export async function useTestKysely() {
  const kysely = await useLocalKysely();

  afterAll(async () => {
    await kysely.destroy();
  });
  return kysely;
}
