2018-05-11 12:43:06 -04:00
|
|
|
load("//tools:defaults.bzl", "ts_library")
|
2018-03-21 17:22:06 -04:00
|
|
|
load("@build_bazel_rules_nodejs//:defs.bzl", "jasmine_node_test")
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = glob(["**/*.ts"]),
|
|
|
|
deps = [
|
|
|
|
"//packages:types",
|
|
|
|
"//packages/compiler",
|
|
|
|
"//packages/compiler-cli",
|
|
|
|
"//packages/compiler-cli/test:test_utils",
|
|
|
|
"//packages/compiler/test:test_utils",
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/platform-browser",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
|
|
|
bootstrap = ["angular/tools/testing/init_node_spec.js"],
|
|
|
|
data = [
|
|
|
|
"//packages/common:npm_package",
|
|
|
|
"//packages/core:npm_package",
|
|
|
|
"//packages/router:npm_package",
|
|
|
|
],
|
|
|
|
deps = [
|
|
|
|
":test_lib",
|
|
|
|
"//packages/core",
|
|
|
|
"//tools/testing:node",
|
|
|
|
],
|
|
|
|
)
|