From d3fbeba69d166149444623f3cde984fdc60b61f7 Mon Sep 17 00:00:00 2001 From: Saravana Achu Mac Date: Mon, 4 May 2026 16:58:50 -0700 Subject: [PATCH] test(auth): allow bcrypt hash tests to finish What changed: - Added an auth package Vitest config with the existing forks pool and a 15s test timeout. - Kept production bcryptjs salt rounds and test assertions unchanged. Why: - On this machine one 12-round bcryptjs hash can exceed Vitest's default 5s timeout, making the auth suite fail even though the implementation succeeds. Verification: - pnpm --filter @bytelyst/auth build - pnpm --filter @bytelyst/auth test - pnpm --filter @bytelyst/auth exec eslint . --ext .ts,.tsx --- packages/auth/vitest.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 packages/auth/vitest.config.ts diff --git a/packages/auth/vitest.config.ts b/packages/auth/vitest.config.ts new file mode 100644 index 00000000..03ac5588 --- /dev/null +++ b/packages/auth/vitest.config.ts @@ -0,0 +1,8 @@ +import { defineConfig } from 'vitest/config'; + +export default defineConfig({ + test: { + pool: 'forks', + testTimeout: 15_000, + }, +});