cogsbox-shape
Version:
A TypeScript library for creating type-safe database schemas with Zod validation, SQL type definitions, and automatic client/server transformations. Unifies client, server, and database types through a single schema definition, with built-in support for r
16 lines (15 loc) • 642 B
JavaScript
import { describe, expect, it } from "vitest";
describe("package exports", () => {
it("exposes the root cogsbox-shape entry at runtime", async () => {
const pkg = await import("cogsbox-shape");
expect(pkg.s).toBeDefined();
expect(pkg.schema).toBeDefined();
expect(pkg.createSchemaBox).toBeDefined();
});
it("exposes db subpath entries at runtime", async () => {
const dbPkg = await import("cogsbox-shape/db");
const sqlitePkg = await import("cogsbox-shape/db/sqlite");
expect(dbPkg.connect).toBeDefined();
expect(sqlitePkg.createSqliteDb).toBeDefined();
});
});