Skip to content

Commit a1fd4bb

Browse files
devversionmmalerba
authored andcommitted
build: simplify api golden target names (#14973)
* In order to make it easier to test/update goldens, the Bazel targets are updated to the match the actual golden file paths. This is useful because developers can then use terminal autocompletion to go to the desired golden file, and just need to add the `_api` suffix. This easier than manually constructing the Bazel API target name which is not intuitive and takes up time.
1 parent b51f143 commit a1fd4bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/public_api_guard/generate-guard-tests.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def generate_test_targets(golden_files):
2424

2525
# Create the test rule that compares the build output with the golden file.
2626
ts_api_guardian_test(
27-
name = "%s_%s_api" % (package_name, entry_point),
27+
name = "%s_api" % golden_file,
2828
actual = "angular_material/src/%s/index.d.ts" % entry_point_path,
2929
data = [golden_file] + [
3030
"//src/%s" % (entry_point_path),

0 commit comments

Comments
 (0)