chore(test): fix relative import path

This commit is contained in:
Bereket Engida
2025-01-12 15:12:42 +03:00
parent dd459dd817
commit 18dcf99b96
4 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ import { init } from "../init";
import type { BetterAuthOptions, BetterAuthPlugin } from "../types";
import { z } from "zod";
import { createAuthClient } from "../client";
import { bearer } from "src/plugins";
import { bearer } from "../plugins/bearer";
describe("call", async () => {
const q = z.optional(

View File

@@ -2,7 +2,7 @@ import { APIError } from "better-call";
import { createAuthMiddleware } from "../call";
import { wildcardMatch } from "../../utils/wildcard";
import { getHost, getOrigin, getProtocol } from "../../utils/url";
import type { GenericEndpointContext } from "src/types";
import type { GenericEndpointContext } from "../../types";
/**
* A middleware to validate callbackURL and origin against

View File

@@ -5,7 +5,7 @@ import type { GoogleProfile } from "../../social-providers";
import { DEFAULT_SECRET } from "../../utils/constants";
import { getOAuth2Tokens } from "../../oauth2";
import { signJWT } from "../../crypto/jwt";
import { BASE_ERROR_CODES } from "src/error/codes";
import { BASE_ERROR_CODES } from "../../error/codes";
let email = "";
vi.mock("../../oauth2", async (importOriginal) => {

View File

@@ -3,7 +3,7 @@ import type { FieldAttribute } from ".";
import type { AuthPluginSchema } from "../types/plugins";
import type { BetterAuthOptions } from "../types/options";
import { APIError } from "better-call";
import type { Account, Session, User } from "src/types";
import type { Account, Session, User } from "../types";
export const accountSchema = z.object({
id: z.string(),