mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Add DittoPostgres test
This commit is contained in:
parent
c7175f8301
commit
4e0479f7c8
1 changed files with 11 additions and 0 deletions
11
packages/db/adapters/DittoPostgres.test.ts
Normal file
11
packages/db/adapters/DittoPostgres.test.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { DittoConf } from '@ditto/conf';
|
||||
|
||||
import { DittoPostgres } from './DittoPostgres.ts';
|
||||
|
||||
const conf = new DittoConf(Deno.env);
|
||||
const isPostgres = /^postgres(?:ql)?:/.test(conf.databaseUrl);
|
||||
|
||||
Deno.test('DittoPostgres', { ignore: !isPostgres }, async () => {
|
||||
await using db = new DittoPostgres(conf.databaseUrl);
|
||||
await db.migrate();
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue