2017-12-06 09:56:49 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2017-12-16 14:35:47 -05:00
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_web_test")
|
2017-12-06 09:56:49 -05:00
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
|
|
|
testonly = 1,
|
2017-12-01 17:23:03 -05:00
|
|
|
srcs = glob(
|
|
|
|
["**/*.ts"],
|
2017-12-16 14:35:47 -05:00
|
|
|
exclude = [
|
|
|
|
"**/*_node_only_spec.ts",
|
|
|
|
"render3/**/*.ts",
|
|
|
|
],
|
2017-12-01 17:23:03 -05:00
|
|
|
),
|
2017-12-06 09:56:49 -05:00
|
|
|
tsconfig = "//packages:tsconfig",
|
|
|
|
deps = [
|
|
|
|
"//packages/animations",
|
|
|
|
"//packages/animations/browser",
|
|
|
|
"//packages/animations/browser/testing",
|
|
|
|
"//packages/common",
|
|
|
|
"//packages/compiler",
|
|
|
|
"//packages/compiler/testing",
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/core/testing",
|
|
|
|
"//packages/platform-browser",
|
|
|
|
"//packages/platform-browser-dynamic",
|
|
|
|
"//packages/platform-browser/animations",
|
|
|
|
"//packages/platform-browser/testing",
|
|
|
|
"//packages/router",
|
|
|
|
"//packages/router/testing",
|
|
|
|
"@rxjs",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2017-12-16 14:35:47 -05:00
|
|
|
ts_library(
|
|
|
|
name = "test_node_only_lib",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = glob(["**/*_node_only_spec.ts"]),
|
|
|
|
tsconfig = "//packages:tsconfig",
|
|
|
|
deps = [
|
|
|
|
":test_lib",
|
|
|
|
"//packages/compiler",
|
|
|
|
"//packages/compiler/testing",
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/core/testing",
|
|
|
|
"//packages/platform-server",
|
|
|
|
"//packages/platform-server/testing",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2017-12-06 09:56:49 -05:00
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
2017-12-16 14:35:47 -05:00
|
|
|
bootstrap = ["angular_src/packages/_testing_init/init_node_spec.js"],
|
|
|
|
deps = [
|
|
|
|
":test_lib",
|
|
|
|
":test_node_only_lib",
|
|
|
|
"//packages/_testing_init:node",
|
|
|
|
"//packages/platform-server",
|
|
|
|
"//packages/platform-server/testing",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_web_test(
|
|
|
|
name = "test_web",
|
2017-12-06 09:56:49 -05:00
|
|
|
bootstrap = [
|
2017-12-16 14:35:47 -05:00
|
|
|
"//:angular_bootstrap_scripts",
|
2017-12-06 09:56:49 -05:00
|
|
|
],
|
2017-12-16 14:35:47 -05:00
|
|
|
# do not sort
|
2017-12-06 09:56:49 -05:00
|
|
|
deps = [
|
2017-12-16 14:35:47 -05:00
|
|
|
"//packages/_testing_init:browser",
|
2017-12-06 09:56:49 -05:00
|
|
|
":test_lib",
|
|
|
|
],
|
|
|
|
)
|