mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
31e3eb20f9
Migrate karma tests throughout the repo to use the new web test runner based rule instead PR Close #62294
34 lines
672 B
Python
34 lines
672 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"],
|
|
),
|
|
interop_deps = [
|
|
"//packages/private/testing",
|
|
],
|
|
# Visible to //:saucelabs_unit_tests_poc target
|
|
visibility = ["//:__pkg__"],
|
|
deps = [
|
|
"//:node_modules/rxjs",
|
|
"//packages/common/http:http_rjs",
|
|
"//packages/common/http/testing:testing_rjs",
|
|
],
|
|
)
|
|
|
|
angular_jasmine_test(
|
|
name = "test",
|
|
data = [
|
|
":test_lib_rjs",
|
|
],
|
|
)
|
|
|
|
ng_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib_rjs",
|
|
],
|
|
)
|