mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Update Glob to fast-glob to remove the dependence of Inflight that contains a memory leak Signed-off-by: Kevin Gay <5970002+GayKevin@users.noreply.github.com> PR Close #50632
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
load("@build_bazel_rules_nodejs//:index.bzl", "copy_to_bin")
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["**/*_spec.ts"],
|
|
),
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/compiler-cli/src/ngtsc/file_system",
|
|
"//packages/compiler-cli/src/ngtsc/file_system/testing",
|
|
"//packages/compiler-cli/src/ngtsc/logging",
|
|
"//packages/compiler-cli/src/ngtsc/logging/testing",
|
|
"//packages/compiler-cli/src/ngtsc/testing",
|
|
"//packages/localize/tools",
|
|
"//packages/localize/tools/test:test_lib",
|
|
"//packages/localize/tools/test/helpers",
|
|
],
|
|
)
|
|
|
|
# Use copy_to_bin since filegroup doesn't seem to work on Windows.
|
|
copy_to_bin(
|
|
name = "test_files",
|
|
srcs = glob(["test_files/**/*"]),
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "integration",
|
|
bootstrap = ["//tools/testing:node_no_angular"],
|
|
data = [
|
|
":test_files",
|
|
],
|
|
deps = [
|
|
":test_lib",
|
|
"@npm//fast-glob",
|
|
"@npm//yargs",
|
|
],
|
|
)
|