Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test: cover re-export of a single item through the crate chain

Steven Enamakel2643d73e8a33
diff --git a/scripts/__tests__/check-crate-chain.test.mjs b/scripts/__tests__/check-crate-chain.test.mjs
index d97125cc41..4d4d791dfa 100644
--- a/scripts/__tests__/check-crate-chain.test.mjs
+++ b/scripts/__tests__/check-crate-chain.test.mjs
@@ -181,6 +181,8 @@ test('rpc may not re-export the internal list on a public path', () => {
['2']
);
assert.deepEqual(flagged('pub(crate) use openhuman_tinyhumans::__host as core_host;\n'), []);
+ // Re-exporting one item reached through the list is an item, not the list.
+ assert.deepEqual(flagged('pub use crate::core_host::core::unwrap_rpc;\n'), []);
});
test('a host reaching the internal list through openhuman_rpc is flagged', () => {