Skip to content

Commit

Permalink
Modify jsinterop_generator macro to mark js_library as testonly w…
Browse files Browse the repository at this point in the history
…hen defined within a test context.

By making these `js_library` testonly, we can safely remove jsinterop-generator test targets from the `check_level_off_permission` allow list.

PiperOrigin-RevId: 671072448
  • Loading branch information
jDramaix authored and copybara-github committed Sep 4, 2024
1 parent 0964690 commit 6209d64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jsinterop_generator.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ def jsinterop_generator(
closure_js_library(
name = externs_lib_name,
srcs = externs_deps,
testonly = testonly,
)
deps_j2cl.append(":%s" % externs_lib_name)

Expand Down

0 comments on commit 6209d64

Please sign in to comment.