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
240 async runTarget(target: string, extraArgs: string = ''): Promise<CommandResult> {
241 const commandBuildTarget = `run ${target} ${this.stableExecArgs()} ${extraArgs}`;
242
243 return await this.spawnCommand(commandBuildTarget, 'inherit').catch(() => {
244 throw new CliError(`Failed to run target: ${target}`);
245 });
246 }
247
248 // Run bazel query for targets matching queryKind and filtered to match any of the specified
249 // filters.

Callers 2

valdiTestFunction · 0.95
valdiAgentCheckFunction · 0.95

Calls 2

spawnCommandMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected