mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +00:00
chore: bump vitest version (#3810)
* chore: bump vitest version * cleanup the server
This commit is contained in:
@@ -14,10 +14,9 @@
|
||||
"hono": "^4.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cloudflare/vitest-pool-workers": "^0.7.1",
|
||||
"@cloudflare/workers-types": "^4.20250214.0",
|
||||
"@cloudflare/vitest-pool-workers": "^0.8.60",
|
||||
"@cloudflare/workers-types": "^4.20250805.0",
|
||||
"drizzle-kit": "^0.30.4",
|
||||
"vitest": "^2.1.8",
|
||||
"wrangler": "^3.109.2"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
"test": "turbo --filter \"./packages/*\" test",
|
||||
"typecheck": "turbo --filter \"./packages/*\" typecheck"
|
||||
},
|
||||
"dependencies": {
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.1.3",
|
||||
"@types/node": "^20.17.9",
|
||||
"bumpp": "^9.8.1",
|
||||
@@ -29,7 +29,8 @@
|
||||
"taze": "^0.18.0",
|
||||
"tinyglobby": "^0.2.10",
|
||||
"turbo": "^2.3.3",
|
||||
"typescript": "catalog:"
|
||||
"typescript": "catalog:",
|
||||
"vitest": "catalog:"
|
||||
},
|
||||
"pnpm": {
|
||||
"overrides": {
|
||||
|
||||
@@ -735,7 +735,6 @@
|
||||
"tedious": "^18.6.1",
|
||||
"typescript": "catalog:",
|
||||
"unbuild": "catalog:",
|
||||
"vitest": "^1.6.0",
|
||||
"vue": "^3.5.13",
|
||||
"zod": "^4.0.0"
|
||||
},
|
||||
|
||||
@@ -345,17 +345,25 @@ describe("oidc", async () => {
|
||||
});
|
||||
|
||||
describe("oidc storage", async () => {
|
||||
let server: Listener;
|
||||
|
||||
afterEach(async () => {
|
||||
if (server) {
|
||||
await server.close();
|
||||
}
|
||||
});
|
||||
|
||||
test.each([
|
||||
{
|
||||
storeClientSecret: undefined,
|
||||
},
|
||||
{
|
||||
storeClientSecret: "hashed" as const,
|
||||
storeClientSecret: "hashed",
|
||||
},
|
||||
{
|
||||
storeClientSecret: "encrypted" as const,
|
||||
storeClientSecret: "encrypted",
|
||||
},
|
||||
])("OIDC base test", async ({ storeClientSecret }) => {
|
||||
] as const)("OIDC base test", async ({ storeClientSecret }) => {
|
||||
const {
|
||||
auth: authorizationServer,
|
||||
signInWithTestUser,
|
||||
@@ -389,7 +397,7 @@ describe("oidc storage", async () => {
|
||||
},
|
||||
});
|
||||
|
||||
let server = await listen(toNodeHandler(authorizationServer.handler), {
|
||||
server = await listen(toNodeHandler(authorizationServer.handler), {
|
||||
port: 3000,
|
||||
});
|
||||
|
||||
@@ -496,15 +504,19 @@ describe("oidc storage", async () => {
|
||||
},
|
||||
});
|
||||
expect(callbackURL).toContain("/dashboard");
|
||||
|
||||
afterEach(async () => {
|
||||
await server.close();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("oidc-jwt", async () => {
|
||||
let server: Listener | null = null;
|
||||
|
||||
afterEach(async () => {
|
||||
if (server) {
|
||||
await server.close();
|
||||
server = null;
|
||||
}
|
||||
});
|
||||
|
||||
test.each([
|
||||
{ useJwt: true, description: "with jwt plugin", expected: "EdDSA" },
|
||||
{ useJwt: false, description: "without jwt plugin", expected: "HS256" },
|
||||
@@ -543,7 +555,6 @@ describe("oidc-jwt", async () => {
|
||||
headers,
|
||||
},
|
||||
});
|
||||
if (server) console.log("server is not null");
|
||||
server = await listen(toNodeHandler(authorizationServer.handler), {
|
||||
port: 3000,
|
||||
});
|
||||
@@ -681,13 +692,6 @@ describe("oidc-jwt", async () => {
|
||||
|
||||
// expect(checkSignature.payload).toBeDefined();
|
||||
expect(decoded.alg).toBe(expected);
|
||||
|
||||
afterEach(async () => {
|
||||
if (server) {
|
||||
await server.close();
|
||||
server = null;
|
||||
}
|
||||
});
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
"@types/fs-extra": "^11.0.4",
|
||||
"typescript": "catalog:",
|
||||
"unbuild": "catalog:",
|
||||
"vitest": "^1.6.0",
|
||||
"zod": "^4.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
||||
@@ -58,8 +58,7 @@
|
||||
"expo-linking": "~7.0.5",
|
||||
"expo-secure-store": "~14.0.1",
|
||||
"expo-web-browser": "~14.0.2",
|
||||
"unbuild": "^3.5.0",
|
||||
"vitest": "^1.6.0"
|
||||
"unbuild": "^3.5.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"better-auth": "workspace:*"
|
||||
|
||||
@@ -64,7 +64,6 @@
|
||||
"@types/body-parser": "^1.19.6",
|
||||
"@types/express": "^5.0.3",
|
||||
"better-call": "catalog:",
|
||||
"vitest": "^1.6.0",
|
||||
"zod": "^4.0.0"
|
||||
}
|
||||
}
|
||||
@@ -53,7 +53,6 @@
|
||||
"better-call": "catalog:",
|
||||
"better-sqlite3": "^11.6.0",
|
||||
"stripe": "^18.0.0",
|
||||
"vitest": "^1.6.0",
|
||||
"zod": "^4.0.0"
|
||||
}
|
||||
}
|
||||
981
pnpm-lock.yaml
generated
981
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -14,4 +14,5 @@ catalog:
|
||||
"better-call": "^1.0.12"
|
||||
"@better-fetch/fetch": "^1.1.18"
|
||||
"unbuild": "^3.5.0"
|
||||
"typescript": "^5.9.2"
|
||||
"typescript": "^5.9.2"
|
||||
"vitest": "^3.2.4"
|
||||
Reference in New Issue
Block a user