Files
reverse-engineering-anything/src/main/messages.test.ts
T
morluto 5044e20171 test: focus diagnostics and evidence checks on behavior (#9303)
* test: focus configuration diagnostics on their owners

Preserve shape errors, selected paths, recovery guidance, and unchanged-file behavior across parser, setup, and uninstall boundaries.

* test: focus artifact and evidence checks on behavior

Retain format, identity, malformed-input, and cleanup coverage while removing fixed prose and closing the admitted test source.

* refactor(debugger): use configured session admission limits

* test: focus evidence and diagnostics on behavior

* fix(test): restore verifier export and formatting

* test(config): verify debugger limit ranges

* test(rizin): keep fixture executable authoritative

* test(rizin): isolate debugger fixture environment
2026-11-08 16:39:20 +00:00

30 lines
789 B
TypeScript

import { readFile } from "node:fs/promises";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
import { expect, it } from "vitest";
import {
MCP_CONNECTION_LOST,
MCP_CONNECTION_START_FAILED,
MCP_TRANSPORT_ERROR,
MCP_VALIDATION_FAILED,
SERVER_START_FAILED,
} from "./messages.js";
const root = join(dirname(fileURLToPath(import.meta.url)), "../..");
it("publishes the canonical recovery messages in the error catalog", async () => {
const catalog = await readFile(
join(root, "docs/user-visible-errors.csv"),
"utf8",
);
for (const message of [
MCP_CONNECTION_LOST,
MCP_CONNECTION_START_FAILED,
MCP_TRANSPORT_ERROR,
MCP_VALIDATION_FAILED,
SERVER_START_FAILED,
])
expect(catalog).toContain(message);
});