2018-01-09 18:24:00 -05:00
|
|
|
load("//tools:defaults.bzl", "ts_library")
|
|
|
|
load("@build_bazel_rules_typescript//:defs.bzl", "ts_web_test")
|
2017-12-17 18:10:54 -05: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/core",
|
|
|
|
"//packages/core/testing",
|
|
|
|
"//packages/platform-browser",
|
|
|
|
"//packages/platform-browser-dynamic",
|
|
|
|
"//packages/platform-browser/testing",
|
|
|
|
"//packages/upgrade",
|
|
|
|
"//packages/upgrade/static",
|
|
|
|
"@rxjs",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_web_test(
|
|
|
|
name = "test_web",
|
|
|
|
bootstrap = [
|
2017-12-18 18:37:05 -05:00
|
|
|
"//:web_test_bootstrap_scripts",
|
2018-02-15 12:21:18 -05:00
|
|
|
# "//:angularjs",
|
2017-12-17 18:10:54 -05:00
|
|
|
],
|
2018-02-15 12:21:18 -05:00
|
|
|
# Disable since tests need to request different AngularJS versions at
|
|
|
|
# runtime, which is not yet supported.
|
|
|
|
# (Related issue: https://github.com/bazelbuild/rules_typescript/issues/131)
|
|
|
|
tags = ["manual"],
|
2017-12-17 18:10:54 -05:00
|
|
|
# do not sort
|
|
|
|
deps = [
|
2017-12-18 18:37:05 -05:00
|
|
|
"//tools/testing:browser",
|
2017-12-17 18:10:54 -05:00
|
|
|
":test_lib",
|
|
|
|
],
|
|
|
|
)
|