mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
2a26944974
Use ts_project and ng_project to build platform-browser and platform-browser-dynamic package PR Close #61624
41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite")
|
|
load("//tools:defaults2.bzl", "ts_project")
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.ts"]),
|
|
interop_deps = [
|
|
"//packages:types",
|
|
"//packages/compiler",
|
|
"//packages/private/testing",
|
|
],
|
|
deps = [
|
|
"//packages/core:core_rjs",
|
|
"//packages/core/testing:testing_rjs",
|
|
"//packages/platform-browser-dynamic:platform-browser-dynamic_rjs",
|
|
"//packages/platform-browser-dynamic/testing:testing_rjs",
|
|
"//packages/platform-browser/animations:animations_rjs",
|
|
"//packages/platform-browser/testing:testing_rjs",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node"],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test_web",
|
|
static_files = [
|
|
"//packages/platform-browser/test:static_assets/test.html",
|
|
"//packages/platform-browser/test:browser/static_assets/200.html",
|
|
],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|