(overrides: Partial<Command> = {})
| 10 | import type { Command } from "reactotron-core-contract" |
| 11 | |
| 12 | function 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 | |
| 26 | describe("compactJson", () => { |
| 27 | test("produces no whitespace indentation", () => { |