mc-publish/tests/setup-memfs.ts

7 lines
183 B
TypeScript
Raw Normal View History

2024-10-08 19:11:03 +09:00
import { fs } from "memfs";
jest.mock("node:fs", () => fs);
jest.mock("node:fs/promises", () => fs.promises);
jest.mock("fs", () => fs);
jest.mock("fs/promises", () => fs.promises);