mirror of
https://github.com/angular/angular.git
synced 2026-11-23 23:17:50 -05: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
32 lines
571 B
Python
32 lines
571 B
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
ts_library(
|
|
name = "fake_async_lib",
|
|
srcs = [
|
|
"example_spec.ts",
|
|
"fake_async.ts",
|
|
],
|
|
deps = [
|
|
"//packages/core/testing",
|
|
"@npm//@types/jasmine",
|
|
"@npm//@types/node",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "test",
|
|
bootstrap = ["//tools/testing:node"],
|
|
deps = [
|
|
":fake_async_lib",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "files_for_docgen",
|
|
srcs = glob([
|
|
"**/*.ts",
|
|
]),
|
|
)
|