Variable: mockMarshal
ts
const mockMarshal: {
decode: Mock<(data: string) => unknown>;
encode: Mock<(data: unknown) => string>;
};Mock of the OpenXRay marshal global for jest/node.
Backed by JSON for plain arrays/objects and mock Lua tables, matching the engine marshal.encode/decode round-trip used by serialization helpers. Installed as globalThis.marshal by setupLuaGlobals.
Type Declaration
| Name | Type |
|---|---|
decode | Mock<(data: string) => unknown> |
encode | Mock<(data: unknown) => string> |