@firfi/quint-connect
Version:
Model-based testing framework connecting Quint specifications to TypeScript implementations
14 lines • 502 B
JavaScript
import { Predicate } from "effect";
/** @internal */
export const stripMetadata = (state) => Object.fromEntries(Object.entries(state).filter(([k]) => k !== "#meta" && !k.startsWith("mbt::")));
export const resolveNestedValue = (obj, path) => {
let current = obj;
for (const key of path) {
if (!Predicate.isObject(current) || !(key in current)) {
return undefined;
}
current = current[key];
}
return current;
};
//# sourceMappingURL=trace-state.js.map