mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-31 19:36:46 -05:00
chore(test): fix relative import path
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user