import { describe, it, expect } from "vitest";

describe("db module", () => {
  it("exports db and pool", async () => {
    const mod = await import("./index");
    expect(mod.db).toBeDefined();
    expect(mod.pool).toBeDefined();
  });
});

describe("migrate module", () => {
  it("exports runMigrations function", async () => {
    const mod = await import("./migrate");
    expect(mod.runMigrations).toBeInstanceOf(Function);
  });
});

describe("seed module", () => {
  it("exports seed function", async () => {
    const mod = await import("./seed");
    expect(mod.seed).toBeInstanceOf(Function);
  });
});
