MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / captureReports

Function captureReports

packages/react/src/api/error-reporting.test.ts:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30const rawError = (message: string): Error => new Error(message);
31
32const captureReports = (): {
33 readonly calls: Array<{ error: unknown; context: FrontendErrorContext }>;
34 readonly report: (error: unknown, context: FrontendErrorContext) => void;
35} => {
36 const calls: Array<{ error: unknown; context: FrontendErrorContext }> = [];
37 return { calls, report: (error, ctx) => calls.push({ error, context: ctx }) };
38};
39
40describe("frontend error reporting", () => {
41 it("extracts stable messages from structured failures", () => {

Callers 1

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected