mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Migrate karma tests throughout the repo to use the new web test runner based rule instead PR Close #62292
44 lines
1.1 KiB
Text
44 lines
1.1 KiB
Text
load("//adev/shared-docs:defaults.bzl", "ng_project", "ts_project")
|
|
load("//tools:defaults.bzl", "karma_web_test_suite")
|
|
|
|
package(default_visibility = ["//visibility:private"])
|
|
|
|
ng_project(
|
|
name = "copy-source-code-button",
|
|
srcs = [
|
|
"copy-source-code-button.component.ts",
|
|
],
|
|
assets = [
|
|
"copy-source-code-button.component.html",
|
|
],
|
|
visibility = [
|
|
"//adev/shared-docs/components:__pkg__",
|
|
"//adev/shared-docs/components/viewers:__pkg__",
|
|
],
|
|
deps = [
|
|
"//:node_modules/@angular/cdk",
|
|
"//adev/shared-docs/components/icon:icon_rjs",
|
|
"//packages/common:common_rjs",
|
|
"//packages/core:core_rjs",
|
|
],
|
|
)
|
|
|
|
ts_project(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["*.spec.ts"],
|
|
),
|
|
deps = [
|
|
":copy-source-code-button_rjs",
|
|
"//:node_modules/@angular/cdk",
|
|
"//packages/core:core_rjs",
|
|
"//packages/core/testing:testing_rjs",
|
|
"//packages/platform-browser:platform-browser_rjs",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test",
|
|
deps = [":test_lib"],
|
|
)
|