mirror of
https://github.com/morluto/rea.git
synced 2026-11-08 07:46:28 +00:00
test: reduce brittle assertions and test-only runtime paths (#9289)
* test: focus assertions on behavioral evidence Prune redundant and wording-coupled checks while retaining diagnostic, parser, recovery, and cleanup coverage. * refactor: remove test-only wrappers and duplicate checks Exercise production operations through test fixtures, remove unused adapters, and keep managed-member uncertainty guidance under its existing owner. * test: focus process validation on diagnostic facts * refactor: remove test-only runtime helpers Move semantic evidence fixture setup out of runtime and remove unused Windows settle recovery helpers while checking configured defaults independently. * test: focus artifact diagnostics on format facts * test: verify retained cleanup guidance delivery
This commit is contained in:
1 parent
5679ed66f4
commit
352a846127
268 files changed
+586
-1141
No files matched your search
@@ -5,6 +5,7 @@ import {
|
||||
JAVASCRIPT_SEMANTIC_RELATION_FAMILIES,
|
||||
type JavaScriptSemanticGraphInput,
|
||||
type JavaScriptSemanticGraphNode,
|
||||
type JavaScriptSemanticEvidenceReference,
|
||||
} from "../../src/domain/javascript/javascriptSemanticGraphSchemas.js";
|
||||
import {
|
||||
createJavaScriptSemanticFingerprint,
|
||||
@@ -250,3 +251,17 @@ export const semanticFixtureGraph = (
|
||||
withUnknown = false,
|
||||
): JavaScriptSemanticGraph =>
|
||||
createJavaScriptSemanticGraph(semanticFixtureInput(withUnknown));
|
||||
|
||||
/** Resolve one fact's compact provenance without changing its stored shape. */
|
||||
export const resolveJavaScriptSemanticEvidence = (
|
||||
graph: Pick<JavaScriptSemanticGraph, "evidence_contexts">,
|
||||
reference: JavaScriptSemanticEvidenceReference,
|
||||
): ApplicationGraphEvidence => {
|
||||
const context = graph.evidence_contexts.find(
|
||||
({ context_id }) => context_id === reference.context_id,
|
||||
);
|
||||
if (context === undefined)
|
||||
throw new TypeError("Semantic evidence reference names an absent context");
|
||||
const { context_id: _contextId, ...evidenceContext } = context;
|
||||
return { ...evidenceContext, location: reference.location };
|
||||
};
|
||||
Reference in new issue
Block a user