load("//tools:defaults.bzl", "ng_project", "ng_web_test_suite", "ts_project") package(default_visibility = ["//visibility:public"]) ts_project( name = "testing", srcs = glob( ["**/*.ts"], exclude = ["**/*.spec.ts"], ), deps = [ "//src/cdk/testing", ], ) filegroup( name = "source-files", srcs = glob(["**/*.ts"]), ) ng_project( name = "unit_tests_lib", testonly = True, srcs = glob(["**/*.spec.ts"]), deps = [ ":testing", "//:node_modules/@angular/core", "//src/cdk/testing", "//src/cdk/testing/testbed", "//src/material/core", "//src/material/core/option", ], ) ng_web_test_suite( name = "unit_tests", deps = [":unit_tests_lib"], )