Paul Gschwendtner fd9a7ca8c9 build: update to latest version of rules_nodejs v3.3.0 (#41599)
Updates to the latest version of `rules_nodejs` that supports
the most recent NodeJS lts version v14.16.1.

Additionally the latest version of `rules_nodejs` provides
[a package for runfile resolution](https://github.com/bazelbuild/rules_nodejs/pull/2568) w/ types that we can leverage.

PR Close #41599
2021-04-13 17:37:28 -07:00

47 lines
1.3 KiB
Python

load("//tools:defaults.bzl", "jasmine_node_test", "ng_module", "ts_library")
ts_library(
name = "ng_module_ivy_test_lib",
testonly = True,
srcs = ["ng_module_ivy_test.ts"],
tags = ["ivy-only"],
deps = ["@npm//@bazel/runfiles"],
)
# `ng_module` with `compilation_mode` explicitly set to `partial`.
ng_module(
name = "test_module_partial_compilation",
srcs = ["test_module_partial_compilation.ts"],
compilation_mode = "partial",
tags = ["ivy-only"],
deps = ["//packages/core"],
)
# `ng_module` with `compilation_mode` explicitly set to `full`.
ng_module(
name = "test_module_full_compilation",
srcs = ["test_module_full_compilation.ts"],
compilation_mode = "full",
tags = ["ivy-only"],
deps = ["//packages/core"],
)
# `ng_module` with no specific `compilation_mode` attribute specified.
ng_module(
name = "test_module_default_compilation",
srcs = ["test_module_default_compilation.ts"],
tags = ["ivy-only"],
deps = ["//packages/core"],
)
jasmine_node_test(
name = "ng_module_ivy_test",
srcs = [":ng_module_ivy_test_lib"],
data = [
":test_module_default_compilation",
":test_module_full_compilation",
":test_module_partial_compilation",
],
tags = ["ivy-only"],
)