1- load ("//tools:defaults.bzl" , "jasmine_node_test" , "karma_web_test_suite" , "ng_module" , " nodejs_binary" , "npm_package_bin" )
2- load ("//tools:defaults2.bzl" , "ts_project" )
1+ load ("//tools:defaults.bzl" , "jasmine_node_test" , "karma_web_test_suite" , "nodejs_binary" , "npm_package_bin" )
2+ load ("//tools:defaults2.bzl" , "ng_project" , " ts_project" )
33
44package (default_visibility = ["//visibility:private" ])
55
@@ -8,14 +8,18 @@ TEST_FILES = glob(
88 exclude = ["authoring_test_compiler.ts" ],
99)
1010
11- TEST_DEPS = [
11+ TEST_INTEROP_DEPS = [
1212 "//packages/core" ,
1313 "//packages/core/rxjs-interop" ,
1414 "//packages/core/testing" ,
1515 "//packages/platform-browser" ,
1616 "//packages/core/primitives/signals" ,
1717]
1818
19+ TEST_DEPS = [
20+ "//:node_modules/rxjs" ,
21+ ]
22+
1923ts_project (
2024 name = "test_compiler_lib" ,
2125 testonly = True ,
@@ -55,21 +59,16 @@ ts_project(
5559 name = "test_jit_lib" ,
5660 testonly = True ,
5761 srcs = ["transformed_%s" % file for file in TEST_FILES ],
58- interop_deps = TEST_DEPS ,
59- deps = [
60- # TODO: Only rely on `TEST_DEPS`. This should be removed during `rules_js` migration.
61- "//:node_modules/rxjs" ,
62- ],
62+ interop_deps = TEST_INTEROP_DEPS ,
63+ deps = TEST_DEPS ,
6364)
6465
65- ng_module (
66+ ng_project (
6667 name = "test_lib" ,
6768 testonly = True ,
6869 srcs = TEST_FILES ,
69- deps = TEST_DEPS + [
70- # TODO: Only rely on `TEST_DEPS`. This should be removed during `rules_js` migration.
71- "@npm//rxjs" ,
72- ],
70+ interop_deps = TEST_INTEROP_DEPS ,
71+ deps = TEST_DEPS ,
7372)
7473
7574jasmine_node_test (
0 commit comments