From c977e1b629b1c080834efd1c297ebcc5c9b93a1e Mon Sep 17 00:00:00 2001 From: Andrew Kushnir Date: Thu, 10 Dec 2020 22:51:01 -0800 Subject: [PATCH] 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 --- .../test/compliance/test_helpers/check_expectations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-cli/test/compliance/test_helpers/check_expectations.ts b/packages/compiler-cli/test/compliance/test_helpers/check_expectations.ts index 47e807a1aa..a89930b70d 100644 --- a/packages/compiler-cli/test/compliance/test_helpers/check_expectations.ts +++ b/packages/compiler-cli/test/compliance/test_helpers/check_expectations.ts @@ -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 = '';