test(compiler): use `yarn bazel` instead of `bazel` in error message (#40078)

This commit replaces `bazel` with `yarn bazel` in the error message (that instructs to regenerate golden file)
thrown while executing compliance tests. We use `yarn bazel` in other places (so we use the local version of bazel,
not the global one).

PR Close #40078
This commit is contained in:
Andrew Kushnir 2020-12-10 22:51:01 -08:00 committed by Alex Rickabaugh
parent 044cd52996
commit c977e1b629
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ export function checkExpectations(
`The generated file at ${generatedPath} does not exist.\n` +
'Perhaps there is no matching input source file in the TEST_CASES.json file for this test case.\n' +
'Or maybe you need to regenerate the GOLDEN_PARTIAL.js file by running:\n\n' +
` bazel run //packages/compiler-cli/test/compliance/test_cases:${
` yarn bazel run //packages/compiler-cli/test/compliance/test_cases:${
testPath}.golden.update`);
// Clear the stack so that we get a nice error message
error.stack = '';