2017-12-16 23:08:49 -05:00
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_web_test")
|
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = glob(
|
|
|
|
["**/*.ts"],
|
|
|
|
exclude = ["**/*_node_only_spec.ts"],
|
|
|
|
),
|
|
|
|
tsconfig = "//packages:tsconfig",
|
|
|
|
deps = [
|
|
|
|
"//packages/common",
|
|
|
|
"//packages/common/locales",
|
2017-12-17 18:10:54 -05:00
|
|
|
"//packages/compiler",
|
2017-12-16 23:08:49 -05:00
|
|
|
"//packages/core",
|
|
|
|
"//packages/core/testing",
|
|
|
|
"//packages/platform-browser",
|
|
|
|
"//packages/platform-browser-dynamic",
|
2017-12-17 18:10:54 -05:00
|
|
|
"//packages/platform-browser/testing",
|
2017-12-16 23:08:49 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
2017-12-18 18:37:05 -05:00
|
|
|
bootstrap = ["angular_src/tools/testing/init_node_spec.js"],
|
2017-12-16 23:08:49 -05:00
|
|
|
deps = [
|
|
|
|
":test_lib",
|
2017-12-18 18:37:05 -05:00
|
|
|
"//tools/testing:node",
|
2017-12-16 23:08:49 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_web_test(
|
|
|
|
name = "test_web",
|
|
|
|
bootstrap = [
|
2017-12-18 18:37:05 -05:00
|
|
|
"//:web_test_bootstrap_scripts",
|
2017-12-16 23:08:49 -05:00
|
|
|
],
|
|
|
|
# do not sort
|
|
|
|
deps = [
|
2017-12-18 18:37:05 -05:00
|
|
|
"//tools/testing:browser",
|
2017-12-16 23:08:49 -05:00
|
|
|
":test_lib",
|
|
|
|
],
|
|
|
|
)
|