mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
72b80f9a87
Use ts_project and ng_project for building router PR Close #61544
44 lines
1.2 KiB
Python
44 lines
1.2 KiB
Python
load("//tools:defaults.bzl", "karma_web_test_suite", "zone_compatible_jasmine_node_test")
|
|
load("//tools:defaults2.bzl", "ts_project")
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.ts"]),
|
|
interop_deps = [
|
|
"//packages/common",
|
|
"//packages/common/testing",
|
|
"//packages/platform-browser",
|
|
"//packages/platform-browser-dynamic",
|
|
"//packages/platform-browser/testing",
|
|
"//packages/private/testing",
|
|
],
|
|
# Visible to //:saucelabs_unit_tests_poc target
|
|
visibility = ["//:__pkg__"],
|
|
deps = [
|
|
"//:node_modules/rxjs",
|
|
"//packages/core:core_rjs",
|
|
"//packages/core/rxjs-interop:rxjs-interop_rjs",
|
|
"//packages/core/testing:testing_rjs",
|
|
"//packages/router:router_rjs",
|
|
"//packages/router/testing:testing_rjs",
|
|
],
|
|
)
|
|
|
|
# Tests rely on `async/await` for change detection.
|
|
# This syntax needs to be downleveled until ZoneJS supports it.
|
|
zone_compatible_jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node"],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|