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
39 lines
1 KiB
Text
39 lines
1 KiB
Text
load("//tools:defaults.bzl", "karma_web_test_suite")
|
|
load("//tools:defaults2.bzl", "angular_jasmine_test", "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",
|
|
],
|
|
)
|
|
|
|
angular_jasmine_test(
|
|
name = "test",
|
|
data = [
|
|
":test_lib_rjs",
|
|
],
|
|
)
|
|
|
|
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",
|
|
],
|
|
)
|