From 1d5d23a1e01ce61290b36901a38b388c1b357431 Mon Sep 17 00:00:00 2001 From: Lucas Berger Date: Sat, 13 Jun 2026 17:12:52 -0400 Subject: [PATCH] style(quick-260613-ndv): prettier-format global-setup.ts --- apps/api/test/global-setup.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/apps/api/test/global-setup.ts b/apps/api/test/global-setup.ts index 0249048..5f092b4 100644 --- a/apps/api/test/global-setup.ts +++ b/apps/api/test/global-setup.ts @@ -64,14 +64,10 @@ export default async function setup(): Promise { // Try @'%' first (Docker/network access); fall back to @'localhost' if the user was // created with a localhost host qualifier. try { - await rootConn.query( - `GRANT ALL PRIVILEGES ON \`${TEST_DB}\`.* TO '${appUser}'@'%'`, - ); + await rootConn.query(`GRANT ALL PRIVILEGES ON \`${TEST_DB}\`.* TO '${appUser}'@'%'`); } catch { // If @'%' fails (user only exists as @'localhost'), try that form. - await rootConn.query( - `GRANT ALL PRIVILEGES ON \`${TEST_DB}\`.* TO '${appUser}'@'localhost'`, - ); + await rootConn.query(`GRANT ALL PRIVILEGES ON \`${TEST_DB}\`.* TO '${appUser}'@'localhost'`); } await rootConn.query('FLUSH PRIVILEGES'); @@ -101,9 +97,7 @@ export default async function setup(): Promise { // construct({ client, mode }, undefined) and the session client becomes // the plain config object (no .query()). The two-arg form is safe. const db = drizzle(appPool, { mode: 'default' }); - const migrationsFolder = fileURLToPath( - new URL('../src/db/migrations', import.meta.url), - ); + const migrationsFolder = fileURLToPath(new URL('../src/db/migrations', import.meta.url)); await migrate(db, { migrationsFolder }); // Clean slate each run: truncate every table (except drizzle's migration