test: remove dead mock code line

This commit is contained in:
Jörg Krzeslak 2026-08-04 02:09:47 +02:00
parent ecfa591eec
commit 2fa4dcf84e
1 changed files with 1 additions and 4 deletions

View File

@ -7,7 +7,7 @@ const testDbDir = join(tmpdir(), "converter-test-db");
mkdirSync(testDbDir, { recursive: true });
process.env.DB_PATH = join(testDbDir, "test.sqlite");
import { test, expect, mock, afterAll, afterEach } from "bun:test";
import { test, expect, afterAll, afterEach } from "bun:test";
import type { Cookie } from "elysia";
import {
getPossibleTargets,
@ -29,9 +29,6 @@ if (!existsSync(dbDir)) {
}
const testDb = new Database(dbPath, { create: true });
mock.module("../../src/db/db", () => ({
db: testDb,
}));
// cleans up the table before each test for real isolation (even with parallel tests)
afterEach(() => {