MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getModuleTargets

Function getModuleTargets

npm_modules/cli/src/commands/agentCheck.ts:49–53  ·  view source on GitHub ↗
(client: BazelClient, module: string)

Source from the content-addressed store, hash-verified

47}
48
49async function getModuleTargets(client: BazelClient, module: string): Promise<string[]> {
50 const allTargets = await client.queryTargetsByKindWithFilter('valdi_module', [module], 'pipe');
51 const androidDebug = allTargets.filter((t: string) => t.includes('android.debug'));
52 return androidDebug.length > 0 ? androidDebug : allTargets;
53}
54
55async function getTestTargets(client: BazelClient, module: string): Promise<string[]> {
56 return await client.queryTargetsByKindWithFilter('test', [module], 'pipe');

Callers 1

valdiAgentCheckFunction · 0.85

Calls 2

filterMethod · 0.80

Tested by

no test coverage detected