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",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//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",
|
2020-06-25 04:32:41 -04:00
|
|
|
"@npm//@bazel/typescript/third_party/github.com/bazelbuild/bazel/src/main/protobuf:worker_protocol.proto",
|
2017-10-13 12:03:28 -04:00
|
|
|
],
|
|
|
|
)
|
2018-12-26 13:12:29 -05:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "flat_module_test_lib",
|
|
|
|
testonly = True,
|
|
|
|
srcs = ["flat_module_test.ts"],
|
|
|
|
tsconfig = ":tsconfig.json",
|
|
|
|
deps = [
|
|
|
|
"//packages/private/testing",
|
2021-04-13 13:07:12 -04:00
|
|
|
"@npm//@bazel/runfiles",
|
2018-12-26 13:12:29 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "flat_module_test",
|
|
|
|
srcs = [":flat_module_test_lib"],
|
|
|
|
data = ["//packages/bazel/test/ngc-wrapped/flat_module"],
|
|
|
|
)
|