fix: address code review feedback - add error handling and fix import style

Co-authored-by: ZimengXiong <83783148+ZimengXiong@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-06 22:42:50 +00:00
committed by Zimeng Xiong
parent ef75f9ebdf
commit 94694deb91
2 changed files with 27 additions and 22 deletions
@@ -8,6 +8,7 @@
*/
import { describe, it, expect, beforeAll, afterAll, beforeEach } from "vitest";
import bcrypt from "bcrypt";
import {
getTestPrisma,
cleanupTestDb,
@@ -28,7 +29,6 @@ describe("User Data Sandboxing", () => {
prisma = getTestPrisma();
// Create two test users
const bcrypt = require("bcrypt");
const hashA = await bcrypt.hash("passwordA", 10);
const hashB = await bcrypt.hash("passwordB", 10);