refactor: convert to bun workspaces monorepo
- Move web app into apps/web/ - Create packages/shared/ with shared types - Create plugins/decky-vault/ scaffold - Root package.json manages workspaces only
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { betterAuth } from "better-auth"
|
||||
import { testUtils } from "better-auth/plugins"
|
||||
import { drizzleAdapter } from "@better-auth/drizzle-adapter"
|
||||
import { db } from "@/lib/db/index"
|
||||
|
||||
export const testAuth = betterAuth({
|
||||
database: drizzleAdapter(db, {
|
||||
provider: "pg",
|
||||
}),
|
||||
plugins: [
|
||||
testUtils({ captureOTP: true }),
|
||||
],
|
||||
emailAndPassword: {
|
||||
enabled: true,
|
||||
},
|
||||
})
|
||||
|
||||
export async function getTestHelpers() {
|
||||
const ctx = await testAuth.$context
|
||||
return ctx.test
|
||||
}
|
||||
Reference in New Issue
Block a user