Updates the Bazel NodeJS rules to v4.0.0-beta.0. This is necessary so that the Angular components repo can update, and it's generally good to stay as up-to-date as possible with the Bazel rules as it's easy to fall behind, and updating early allows us to discover issues affecting our tooling earlier (where they are easier to address due to e.g. potential breaking change policy). PR Close #42760
37 lines
1.2 KiB
Python
37 lines
1.2 KiB
Python
load("//dev-infra:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
srcs = glob([
|
|
"**/*.ts",
|
|
]),
|
|
deps = [
|
|
"//dev-infra/commit-message",
|
|
"//dev-infra/release/config",
|
|
"//dev-infra/release/notes",
|
|
"//dev-infra/release/publish",
|
|
"//dev-infra/release/versioning",
|
|
"//dev-infra/utils",
|
|
"//dev-infra/utils/testing",
|
|
"@npm//@types/jasmine",
|
|
"@npm//@types/minimist",
|
|
"@npm//@types/node",
|
|
"@npm//@types/node-fetch",
|
|
"@npm//@types/semver",
|
|
"@npm//minimist",
|
|
"@npm//nock",
|
|
"@npm//node-fetch",
|
|
"@npm//semver",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
# Disable the Bazel patched module resolution. It always loads ".mjs" files first. This
|
|
# breaks NodeJS execution for "node-fetch" as it uses experimental modules which are not
|
|
# enabled in NodeJS. TODO: Remove this with rules_nodejs 3.x where patching is optional.
|
|
# https://github.com/bazelbuild/rules_nodejs/commit/7d070ffadf9c3b41711382a4737b995f987c14fa.
|
|
args = ["--nobazel_patch_module_resolver"],
|
|
deps = [":test_lib"],
|
|
)
|