mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
test(api): isolate drizzle migration ledger
This commit is contained in:
1 parent
17372a9bf0
commit
57c7ecebe6
1 file changed
+4
-1
@@ -179,7 +179,10 @@ describe.skipIf(!url || !local)('dares + PostgreSQL', () => {
|
|||||||
const dir = new URL('../drizzle/', import.meta.url);
|
const dir = new URL('../drizzle/', import.meta.url);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await migrate(drizzle(migrationPool), { migrationsFolder: fileURLToPath(dir) });
|
await migrate(drizzle(migrationPool), {
|
||||||
|
migrationsFolder: fileURLToPath(dir),
|
||||||
|
migrationsSchema: migrationSchema,
|
||||||
|
});
|
||||||
const discovered = await migrationPool.query<{ count: string }>(
|
const discovered = await migrationPool.query<{ count: string }>(
|
||||||
"select count(*)::text as count from dares where id between '1f5e0000-0000-4000-8000-000000000001'::uuid and '1f5e0000-0000-4000-8000-000000000150'::uuid",
|
"select count(*)::text as count from dares where id between '1f5e0000-0000-4000-8000-000000000001'::uuid and '1f5e0000-0000-4000-8000-000000000150'::uuid",
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user