test(hopper): remove brittle diagnostic source assertion

This commit is contained in:
morluto
2026-07-25 15:23:56 +00:00
parent b2f7561bdd
commit 40bf55b74c
-6
View File
@@ -107,12 +107,6 @@ describe("Hopper bridge truthfulness", () => {
expect(bridgeSource).toContain("_invalidate_search_inventory(document)");
});
it("classifies bridge exceptions without forwarding tracebacks", () => {
expect(bridgeSource).toContain("def _diagnostic_type(error):");
expect(bridgeSource).toContain('"type": _diagnostic_type(error)');
expect(bridgeSource).not.toContain("traceback.format_exc");
});
it("stops background analysis and closes the session-owned document", () => {
expect(bridgeSource).toContain("def _session_document():");
expect(bridgeSource).toContain("os.path.realpath(REA_TARGET_PATH)");