44 lines
899 B
Python
44 lines
899 B
Python
load("//tools:defaults.bzl", "ng_test_library", "ng_web_test_suite", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "testing",
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
exclude = ["**/*.spec.ts"],
|
|
),
|
|
deps = [
|
|
"//src/cdk/testing",
|
|
"@npm//@angular/core",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "source-files",
|
|
srcs = glob(["**/*.ts"]),
|
|
)
|
|
|
|
ng_test_library(
|
|
name = "unit_tests_lib",
|
|
srcs = glob(["**/*.spec.ts"]),
|
|
deps = [
|
|
":testing",
|
|
"//src/cdk/platform",
|
|
"//src/cdk/testing",
|
|
"//src/cdk/testing/testbed",
|
|
"//src/material/button",
|
|
"//src/material/icon",
|
|
"//src/material/icon/testing",
|
|
"@npm//@angular/forms",
|
|
"@npm//@angular/platform-browser",
|
|
],
|
|
)
|
|
|
|
ng_web_test_suite(
|
|
name = "unit_tests",
|
|
deps = [
|
|
":unit_tests_lib",
|
|
],
|
|
)
|