MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / only

Function only

__tests__/sync-import-retry.test.ts:379–379  ·  view source on GitHub ↗
(...accepted: string[])

Source from the content-addressed store, hash-verified

377 it('looks a key past the ceiling through for the imports that could name an added file', () => {
378 const queries = setup();
379 const only = (...accepted: string[]) => (ref: { referenceName: string }) => accepted.includes(ref.referenceName);
380 // Three imports wait under `b`, one more than the ceiling.
381 expect(names(queries.getRetryableFailedImports(['b'], [], 2, [], undefined, only('../b.dart')))).toEqual(['../b.dart']);
382 // What the test accepts is no noise: the module ceiling holds it.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected