mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Since we generate a `.mjs` file as entry-point for jasmine tests, a couple of issues prevented the transitive dependencies from bootstrap targets to be brought in (causing resolution errors): 1. The `_files` (previously `_esm2015`) targets are no longer needed, and they also miss all the information on runfiles. 2. The aspect for computing linker mappings does not respect the `bootstrap` attribute from the `spec_entrypoint` so we manually add the extract ESM output targets (this rule works with the aspect and forwards linker mappings). PR Close #48521
28 lines
641 B
Text
28 lines
641 B
Text
load("//tools:defaults.bzl", "jasmine_node_test", "karma_web_test_suite", "ts_library")
|
|
|
|
ts_library(
|
|
name = "expression_parser_lib",
|
|
testonly = True,
|
|
srcs = glob(["**/*.ts"]),
|
|
deps = [
|
|
"//packages:types",
|
|
"//packages/compiler",
|
|
"//packages/compiler/test/expression_parser/utils",
|
|
"//packages/platform-browser/testing",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "expression_parser",
|
|
bootstrap = ["//tools/testing:node"],
|
|
deps = [
|
|
":expression_parser_lib",
|
|
],
|
|
)
|
|
|
|
karma_web_test_suite(
|
|
name = "expression_parser_web",
|
|
deps = [
|
|
":expression_parser_lib",
|
|
],
|
|
)
|