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
39 lines
978 B
Python
39 lines
978 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",
|
|
"//:node_modules/zone.js",
|
|
"//packages/common:common_rjs",
|
|
"//packages/common/locales:locales_rjs",
|
|
"//packages/common/testing:testing_rjs",
|
|
"//packages/compiler:compiler_rjs",
|
|
"//packages/core:core_rjs",
|
|
"//packages/core/testing:testing_rjs",
|
|
"//packages/platform-browser:platform-browser_rjs",
|
|
"//packages/platform-browser/testing:testing_rjs",
|
|
"//packages/private/testing:testing_rjs",
|
|
],
|
|
)
|
|
|
|
angular_jasmine_test(
|
|
name = "test",
|
|
data = [
|
|
":test_lib_rjs",
|
|
],
|
|
)
|
|
|
|
ng_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib_rjs",
|
|
],
|
|
)
|