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

Method testTargets

npm_modules/cli/src/utils/BazelClient.ts:239–246  ·  view source on GitHub ↗
(targets: string[], extraArgs: string = '')

Source from the content-addressed store, hash-verified

237 }
238
239 async testTargets(targets: string[], extraArgs: string = ''): Promise<CommandResult> {
240 const targetsString = targets.join(' ');
241 const commandTestTarget = `test ${targetsString} ${extraArgs}`;
242
243 return await this.spawnCommand(commandTestTarget, 'inherit', extraArgs).catch(() => {
244 throw new CliError(`Failed to test targets: ${targetsString}`);
245 });
246 }
247
248 async getVersion(): Promise<[number, string, string]> {
249 const commandBazelInfoVersion = `version --gnu_format`;

Callers 2

valdiTestFunction · 0.95
valdiAgentCheckFunction · 0.95

Calls 2

spawnCommandMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected