2018-09-11 21:11:32 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
2017-10-13 12:03:28 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "ngc_test_lib",
|
2018-10-04 16:14:14 -04:00
|
|
|
testonly = True,
|
2017-10-13 12:03:28 -04:00
|
|
|
srcs = [
|
|
|
|
"index_test.ts",
|
|
|
|
"test_support.ts",
|
|
|
|
"tsconfig_template.ts",
|
|
|
|
],
|
2017-12-06 09:56:49 -05:00
|
|
|
tsconfig = ":tsconfig.json",
|
2017-10-13 12:03:28 -04:00
|
|
|
deps = [
|
2017-12-19 18:03:29 -05:00
|
|
|
"//packages/bazel/src/ngc-wrapped:ngc_lib",
|
2018-02-13 11:19:33 -05:00
|
|
|
"//packages/compiler-cli",
|
2018-10-04 16:14:14 -04:00
|
|
|
"@ngdeps//typescript",
|
2017-10-13 12:03:28 -04:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
# We need a filegroup so that we can refer
|
|
|
|
# .d.ts files (by default, jasmine_node_test would get the .js files).
|
|
|
|
filegroup(
|
|
|
|
name = "angular_core",
|
2017-12-19 18:03:29 -05:00
|
|
|
srcs = ["//packages/core"],
|
2017-10-13 12:03:28 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "ngc_test",
|
2017-12-06 09:56:49 -05:00
|
|
|
size = "small",
|
2017-10-13 12:03:28 -04:00
|
|
|
srcs = [":ngc_test_lib"],
|
|
|
|
data = [
|
|
|
|
":angular_core",
|
2017-12-19 18:03:29 -05:00
|
|
|
"//packages/bazel/test/ngc-wrapped/empty:empty_tsconfig.json",
|
|
|
|
"//packages/bazel/test/ngc-wrapped/empty:tsconfig.json",
|
2018-11-27 15:47:38 -05:00
|
|
|
"//packages/private/testing",
|
2018-07-27 14:32:51 -04:00
|
|
|
"@build_bazel_rules_typescript//third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
|
2017-10-13 12:03:28 -04:00
|
|
|
],
|
|
|
|
)
|