"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useTestKysely = useTestKysely;
const bun_test_1 = require("bun:test");
const local_1 = require("./local");
async function useTestKysely(cleanupStrategy) {
    const kysely = await (0, local_1.useLocalKysely)();
    if (cleanupStrategy === 'afterAll')
        (0, bun_test_1.afterAll)(async () => {
            await kysely.destroy();
        });
    return {
        kysely,
        [Symbol.dispose]: async () => {
            await kysely.destroy();
        },
    };
}
//# sourceMappingURL=test.js.map