mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
d0d6966d41
The `packages/localize` package still required some trickery to support CommonJS because tests in the repo were running as CommonJS. This commit removes the CommonJS logic in localize and its tests, so that only ESM is used in production & tests. PR Close #48521
31 lines
698 B
Python
31 lines
698 B
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
|
|
|
|
circular_dependency_test(
|
|
name = "circular_deps_test",
|
|
entry_point = "angular/packages/localize/index.mjs",
|
|
deps = ["//packages/localize"],
|
|
)
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob(
|
|
["**/*_spec.ts"],
|
|
),
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/localize",
|
|
"//packages/localize/init",
|
|
"//packages/localize/src/utils",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node_no_angular"],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|