We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bd854d commit 97c2a7bCopy full SHA for 97c2a7b
2 files changed
server/typescript/packages/migrate-ts/src/index.ts
@@ -68,3 +68,6 @@ export {
68
type D1Binding,
69
type WranglerConfig,
70
} from "./wrangler-config.js";
71
+
72
+// Migration apply+tracking runner (ADR-0016).
73
+export * from "./runner/index.js";
server/typescript/packages/migrate-ts/test/runner/public-api.test.ts
@@ -0,0 +1,11 @@
1
+// test/runner/public-api.test.ts
2
+import { test, expect } from "bun:test";
3
+import * as mt from "../../src/index.js";
4
5
+test("runner is exported from the package entry", () => {
6
+ expect(typeof mt.applyMigrations).toBe("function");
7
+ expect(typeof mt.rollbackTo).toBe("function");
8
+ expect(typeof mt.PgHistoryStore).toBe("function");
9
+ expect(typeof mt.PgExecutor).toBe("function");
10
+ expect(typeof mt.loadMigrations).toBe("function");
11
+});
0 commit comments