mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
The `base64-js` package was only used in tests that were run only on Node.js. On Node.js, `Buffer` is available which can natively perform base64 conversion. By using `Buffer in these Node.js only tests, the `base64-js` package can be removed from the repository. PR Close #53464
69 lines
1.6 KiB
Text
69 lines
1.6 KiB
Text
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library")
|
|
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
|
|
|
# Test that should only be run in node
|
|
NODE_ONLY = [
|
|
"**/*_node_only_spec.ts",
|
|
"aot/**/*.ts",
|
|
]
|
|
|
|
circular_dependency_test(
|
|
name = "circular_deps_test",
|
|
entry_point = "angular/packages/compiler/index.mjs",
|
|
deps = ["//packages/compiler"],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["**/*.ts"],
|
|
exclude = NODE_ONLY,
|
|
),
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/common",
|
|
"//packages/compiler",
|
|
"//packages/compiler/test/expression_parser/utils",
|
|
"//packages/compiler/test/ml_parser/util",
|
|
"//packages/core",
|
|
"//packages/core/src/compiler",
|
|
"//packages/core/testing",
|
|
"//packages/platform-browser",
|
|
"//packages/platform-browser-dynamic",
|
|
"//packages/platform-browser/testing",
|
|
"@npm//source-map",
|
|
],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_node_only_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
NODE_ONLY,
|
|
),
|
|
deps = [
|
|
":test_lib",
|
|
"//packages/compiler",
|
|
"//packages/compiler/test/expression_parser/utils",
|
|
"//packages/core",
|
|
"@npm//typescript",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node"],
|
|
deps = [
|
|
":test_lib",
|
|
":test_node_only_lib",
|
|
"@npm//source-map",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "test_web",
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|