Package: effect
Module: TestConsole
Represents a single console method invocation captured by the TestConsole. Each entry contains the method name and the parameters passed to it.
When to use
Use to inspect or type one captured console invocation.
Example (Typing captured console entries)
import type { TestConsole } from "effect/testing"
const entry: TestConsole.TestConsole.Entry = {
method: "error",
parameters: ["not found"]
}
console.log(entry.method) // "error"
console.log(entry.parameters) // ["not found"]
Signature
export interface Entry {
readonly method: Method
readonly parameters: ReadonlyArray<unknown>
}
Since v4.0.0