36 lines
676 B
Python
36 lines
676 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",
|
||
|
|
],
|
||
|
|
)
|
||
|
|
|
||
|
|
filegroup(
|
||
|
|
name = "source-files",
|
||
|
|
srcs = glob(["**/*.ts"]),
|
||
|
|
)
|
||
|
|
|
||
|
|
ng_test_library(
|
||
|
|
name = "unit_tests_lib",
|
||
|
|
srcs = glob(["**/*.spec.ts"]),
|
||
|
|
deps = [
|
||
|
|
":testing",
|
||
|
|
"//src/cdk/testing",
|
||
|
|
"//src/cdk/testing/testbed",
|
||
|
|
"//src/material/core",
|
||
|
|
],
|
||
|
|
)
|
||
|
|
|
||
|
|
ng_web_test_suite(
|
||
|
|
name = "unit_tests",
|
||
|
|
deps = [":unit_tests_lib"],
|
||
|
|
)
|