// eslint-disable-next-line no-restricted-imports
import realNodeFs from "node:fs/promises";
import { expectType } from "tsd";
const mockFs = {};
// Filesystem must be a subset of node:fs/promises, "watch" type does not match due to type bug, so is excluded. If someone manages to fix this please do!
expectType(realNodeFs);
expectType(await mockFs.readFile("foo"));
expectType(await mockFs.readFile("foo", { encoding: "utf-8" }));
