MCPcopy Index your code
hub / github.com/infinitered/reactotron / makeCommand

Function makeCommand

lib/reactotron-mcp/test/serialization.test.ts:12–24  ·  view source on GitHub ↗
(overrides: Partial<Command> = {})

Source from the content-addressed store, hash-verified

10import type { Command } from "reactotron-core-contract"
11
12function makeCommand(overrides: Partial<Command> = {}): Command {
13 return {
14 type: "log",
15 connectionId: 1,
16 clientId: "abc-123",
17 date: new Date("2025-01-01T00:00:00Z"),
18 deltaTime: 0,
19 important: false,
20 messageId: 1,
21 payload: { message: "hello" },
22 ...overrides,
23 } as Command
24}
25
26describe("compactJson", () => {
27 test("produces no whitespace indentation", () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected