From 6209d644e24e2949bbc79d78ccc002ab413202d9 Mon Sep 17 00:00:00 2001 From: Julien Dramaix Date: Wed, 4 Sep 2024 13:05:45 -0700 Subject: [PATCH] Modify `jsinterop_generator` macro to mark `js_library` as testonly when 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 --- jsinterop_generator.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/jsinterop_generator.bzl b/jsinterop_generator.bzl index 64ce6c6..8817bf3 100644 --- a/jsinterop_generator.bzl +++ b/jsinterop_generator.bzl @@ -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)