remove comments in vitest.setup

This commit is contained in:
uinstinct 2025-06-13 11:11:38 +05:30
parent 6cdefaeead
commit 7f9d545d8c

View file

@ -3,10 +3,6 @@ import { TextDecoder, TextEncoder } from "util";
import fetch, { Request, Response } from "node-fetch";
import { beforeAll } from "vitest";
// if (process.env.DEBUG === "jest") {
// jest.setTimeout(5 * 60 * 1000);
// }
beforeAll(() => {
// @ts-ignore
globalThis.fetch = fetch;
@ -18,15 +14,3 @@ beforeAll(() => {
// @ts-ignore
globalThis.TextDecoder = TextDecoder;
});
// https://github.com/mswjs/msw/issues/1576#issuecomment-1482643055
// TODO - currently causing tests to fail because sqlite is still running for some reason
// const clearTestDirectory = () => {
// if (fs.existsSync(process.env.CONTINUE_GLOBAL_DIR!)) {
// fs.rmSync(process.env.CONTINUE_GLOBAL_DIR!, { recursive: true });
// }
// };
// globalThis.beforeAll(clearTestDirectory);
// globalThis.afterAll(clearTestDirectory);