test: remove dead fallback logic

This commit is contained in:
Jörg Krzeslak 2026-08-02 17:03:29 +02:00 committed by Laertes87
parent 1d328f4b77
commit a2f0005bfc
1 changed files with 2 additions and 3 deletions

View File

@ -3,9 +3,8 @@ import { tmpdir } from "node:os";
import { mkdirSync, rmSync, existsSync } from "node:fs"; import { mkdirSync, rmSync, existsSync } from "node:fs";
import { dirname, join, resolve } from "node:path"; import { dirname, join, resolve } from "node:path";
const testDbDir: string = const testDbDir = join(tmpdir(), "converter-test-db");
mkdirSync(join(tmpdir(), "converter-test-db"), { recursive: true }) ?? mkdirSync(testDbDir, { recursive: true });
join(tmpdir(), "converter-test-db");
process.env.DB_PATH = join(testDbDir, "test.sqlite"); process.env.DB_PATH = join(testDbDir, "test.sqlite");
import { test, expect, mock, afterAll, afterEach } from "bun:test"; import { test, expect, mock, afterAll, afterEach } from "bun:test";