mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
4fae4dbba8
Use the packaged versions of the packages instead of the local ts_project dependencies to prevent multiple versions of the deps to enter test bundles PR Close #62413
38 lines
975 B
Python
38 lines
975 B
Python
load("//tools:defaults2.bzl", "angular_jasmine_test", "ng_web_test_suite", "ts_project")
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
),
|
|
# Visible to //:saucelabs_unit_tests_poc target
|
|
visibility = ["//:__pkg__"],
|
|
deps = [
|
|
"//:node_modules/rxjs",
|
|
"//packages:types_rjs",
|
|
"//packages/common:common_rjs",
|
|
"//packages/common/http:http_rjs",
|
|
"//packages/common/http/testing:testing_rjs",
|
|
"//packages/core:core_rjs",
|
|
"//packages/core/testing:testing_rjs",
|
|
"//packages/private/testing:testing_rjs",
|
|
],
|
|
)
|
|
|
|
angular_jasmine_test(
|
|
name = "test",
|
|
data = [
|
|
":test_lib_rjs",
|
|
],
|
|
flaky = True, # TODO: figure out why one of the transferCache tests is flaky
|
|
)
|
|
|
|
ng_web_test_suite(
|
|
name = "test_web",
|
|
flaky = True, # TODO: figure out why one of the transferCache tests is flaky
|
|
deps = [
|
|
":test_lib_rjs",
|
|
],
|
|
)
|