diff --git a/backend/migrations/env.py b/backend/migrations/env.py index 4e18843c..a2fe6e10 100644 --- a/backend/migrations/env.py +++ b/backend/migrations/env.py @@ -4,11 +4,10 @@ import sys from logging.config import fileConfig from pathlib import Path +from alembic import context from sqlalchemy import engine_from_config, pool from sqlmodel import SQLModel -from alembic import context - PROJECT_ROOT = Path(__file__).resolve().parents[1] if str(PROJECT_ROOT) not in sys.path: sys.path.append(str(PROJECT_ROOT)) diff --git a/frontend/src/auth/redirects.test.ts b/frontend/src/auth/redirects.test.ts index fa5396ac..45638c3f 100644 --- a/frontend/src/auth/redirects.test.ts +++ b/frontend/src/auth/redirects.test.ts @@ -26,7 +26,9 @@ describe("resolveSignInRedirectUrl", () => { it("rejects protocol-relative urls", () => { vi.stubEnv("NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL", "/activity"); - expect(resolveSignInRedirectUrl("//evil.example.com/path")).toBe("/activity"); + expect(resolveSignInRedirectUrl("//evil.example.com/path")).toBe( + "/activity", + ); }); it("rejects external absolute urls", () => {