mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Use the new jasmine_test based on rules_js instead of jasmine_node_test from rules_nodejs PR Close #62086
38 lines
770 B
Text
38 lines
770 B
Text
load("//tools:defaults.bzl", "karma_web_test_suite")
|
|
load("//tools:defaults2.bzl", "angular_jasmine_test", "ts_project")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.spec.ts"]),
|
|
deps = [
|
|
"//packages/common:common_rjs",
|
|
"//packages/core:core_rjs",
|
|
"//packages/core/testing:testing_rjs",
|
|
"//packages/router:router_rjs",
|
|
"//packages/router/testing:testing_rjs",
|
|
],
|
|
)
|
|
|
|
angular_jasmine_test(
|
|
name = "test",
|
|
data = [
|
|
":test_lib_rjs",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "files_for_docgen",
|
|
srcs = glob([
|
|
"**/*.ts",
|
|
]),
|
|
)
|