mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
56ff04607c
The linker compliance tests were disabled with a Babel update and nobody realized for quite a while, via https://github.com/angular/angular/pull/49914. As we've came across this lost coverage, which also is quite impactful as all libraries depend on linked output- I've took initiative to debug the root cause as there was no follow-up. https://github.com/angular/angular/issues/51647. It turned out to be a highly complex issue that is non-trivial to fix, but at least we should try to resurrect the significant portion of test coverage by still running the linker tests- avoiding regressions, or unexpected issues (like with defer being developed). We can work on re-enabling and fixing source-maps separately. Tracked via https://github.com/angular/angular/issues/51647. PR Close #53571
31 lines
896 B
Python
31 lines
896 B
Python
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = ["linked_compile_spec.ts"],
|
|
deps = [
|
|
"//packages/compiler-cli/linker",
|
|
"//packages/compiler-cli/linker/babel",
|
|
"//packages/compiler-cli/private",
|
|
"//packages/compiler-cli/src/ngtsc/file_system",
|
|
"//packages/compiler-cli/src/ngtsc/logging",
|
|
"//packages/compiler-cli/src/ngtsc/sourcemaps",
|
|
"//packages/compiler-cli/test/compliance/test_helpers",
|
|
"@npm//@types/babel__core",
|
|
],
|
|
)
|
|
|
|
jasmine_node_test(
|
|
name = "linked",
|
|
bootstrap = ["//tools/testing:node_no_angular"],
|
|
data = [
|
|
"//packages/compiler-cli/src/ngtsc/testing/fake_core:npm_package",
|
|
"//packages/compiler-cli/test/compliance/test_cases",
|
|
],
|
|
shard_count = 2,
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|