Skip to content

Commit 5433fb0

Browse files
authored
build: fix jasmine_node_test (#22291)
With Bazel NodeJS rules 3.0.0 the require patching was removed by default, which was addressed in the upgrade to 3.2.1. However this was missed for jasmine_node_test, which now silently fails. This PR adds the bazel patch for the module resolver, which ensures spec files are found.
1 parent 44cbab0 commit 5433fb0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/defaults.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ def ng_package(name, data = [], deps = [], globals = ROLLUP_GLOBALS, readme_md =
125125
)
126126

127127
def jasmine_node_test(**kwargs):
128+
kwargs["templated_args"] = ["--bazel_patch_module_resolver"] + kwargs.get("templated_args", [])
128129
_jasmine_node_test(**kwargs)
129130

130131
def ng_test_library(deps = [], tsconfig = None, **kwargs):

0 commit comments

Comments
 (0)