2018-02-13 14:26:06 -05:00
|
|
|
load("//packages/bazel:index.bzl", "ng_module")
|
2019-01-16 04:19:01 -05:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test")
|
|
|
|
load(":extract_flat_module_index.bzl", "extract_flat_module_index")
|
2018-02-13 14:26:06 -05:00
|
|
|
|
|
|
|
ng_module(
|
|
|
|
name = "test_module",
|
2018-10-25 23:47:28 -04:00
|
|
|
testonly = True,
|
2018-02-13 14:26:06 -05:00
|
|
|
srcs = glob(["*.ts"]),
|
2018-10-16 16:20:00 -04:00
|
|
|
compiler = "//packages/bazel/src/ngc-wrapped",
|
2018-02-13 14:26:06 -05:00
|
|
|
entry_point = "index.ts",
|
2018-03-15 21:04:34 -04:00
|
|
|
flat_module_out_file = "flat_module_filename",
|
2018-02-13 14:26:06 -05:00
|
|
|
module_name = "some_npm_module",
|
2018-10-16 16:20:00 -04:00
|
|
|
ng_xi18n = "//packages/bazel/src/ngc-wrapped:xi18n",
|
2019-02-20 12:54:42 -05:00
|
|
|
node_modules = "@npm//typescript:typescript__typings",
|
2018-10-25 23:47:28 -04:00
|
|
|
tags = [
|
2018-11-27 15:30:46 -05:00
|
|
|
# Disabled as this test is specific to the flat module indexing of metadata.json files that
|
|
|
|
# the old ngc compiler does. Ivy has no metadata.json files so this test does not apply.
|
|
|
|
"no-ivy-aot",
|
2018-10-25 23:47:28 -04:00
|
|
|
],
|
2018-10-04 16:14:14 -04:00
|
|
|
deps = [
|
|
|
|
"//packages/core",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//@types",
|
2018-10-04 16:14:14 -04:00
|
|
|
],
|
2018-02-13 14:26:06 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
extract_flat_module_index(
|
|
|
|
name = "flat_module_index",
|
2018-10-25 23:47:28 -04:00
|
|
|
testonly = True,
|
2018-02-13 14:26:06 -05:00
|
|
|
deps = [":test_module"],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
|
|
|
srcs = ["spec.js"],
|
|
|
|
data = [":flat_module_index"],
|
2018-10-16 02:24:22 -04:00
|
|
|
tags = [
|
2018-11-27 15:30:46 -05:00
|
|
|
# Disabled as this test is specific to the flat module indexing of metadata.json files that
|
|
|
|
# the old ngc compiler does. Ivy has no metadata.json files so this test does not apply.
|
|
|
|
"no-ivy-aot",
|
2018-10-16 02:24:22 -04:00
|
|
|
],
|
2018-02-13 14:26:06 -05:00
|
|
|
)
|