Skip to content

Commit

Permalink
I can't knex properly
Browse files Browse the repository at this point in the history
  • Loading branch information
iainsproat committed Sep 6, 2024
1 parent 549f2e9 commit 9c07649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/preview-service/tests/hooks/globalSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const dbName =
export async function setup({ provide }: GlobalSetupContext) {
logger.info('🏃🏻‍♀️‍➡️ Running vitest setup global hook')
const superUserDbClient = getTestDb()
const dbAlreadyExists = await superUserDbClient
.select('pg_database')
const dbAlreadyExists = await superUserDbClient('pg_database')
.select('datname')
.where('datname', dbName)
if (!dbAlreadyExists.length) {
await superUserDbClient.raw(`CREATE DATABASE ${dbName}
Expand Down

0 comments on commit 9c07649

Please sign in to comment.