Skip to content

Variable: mockLfs

ts
const mockLfs: {
  attributes: Mock<(_path: string) => LuaTable<AnyNotNil, any> | null>;
  dir: Mock<(_path: string) => LuaMultiReturn<[LuaIterable<string, unknown>, {
     next: () => string | null;
  }]>>;
  mkdir: Mock<(_path: string) => void>;
};

Minimal mock of the optional OpenXRay LuaFileSystem global for jest/node.

Type Declaration

NameType
attributesMock<(_path: string) => LuaTable<AnyNotNil, any> | null>
dirMock<(_path: string) => LuaMultiReturn<[LuaIterable<string, unknown>, { next: () => string | null; }]>>
mkdirMock<(_path: string) => void>