fix: resolve all lint errors
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { describe, it, expect, beforeAll } from "vitest"
|
||||
import { testAuth, getTestHelpers } from "@/lib/auth/test"
|
||||
import { getTestHelpers } from "@/lib/auth/test"
|
||||
import type { TestHelpers } from "better-auth/plugins"
|
||||
|
||||
describe("Better-Auth integration", () => {
|
||||
|
||||
+2
-1
@@ -6,5 +6,6 @@ import type { App } from "@/app/api/[[...slugs]]/route"
|
||||
// standard Next.js server-vs-client guard.
|
||||
export const api =
|
||||
typeof window === "undefined"
|
||||
? treaty((require("../../app/api/[[...slugs]]/route") as { app: App }).app).api
|
||||
? // eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
treaty((require("../../app/api/[[...slugs]]/route") as { app: App }).app).api
|
||||
: treaty<App>(process.env.NEXT_PUBLIC_SITE_URL || "http://localhost:3000").api
|
||||
|
||||
Reference in New Issue
Block a user