9f54d76ef5
Previously we had to share code between upgrade/dynamic and upgrade/static by symlinking the `src` folder, which allowed both packages to access the upgrade/common files. These symlinks are always problematic on Windows, where we had to run a script to re-link them, and restore them. This change uses Bazel packages to share the `upgrade/common` code, which avoids the need for symlinking the `src` folder. Also, the Windows specific scripts that fixup the symlinks have also been removed as there is no more need for them. PR Close #29466
30 lines
657 B
Python
30 lines
657 B
Python
load("//tools:defaults.bzl", "ts_library", "ts_web_test_suite")
|
|
|
|
ts_library(
|
|
name = "test_lib",
|
|
testonly = True,
|
|
srcs = glob([
|
|
"**/*.ts",
|
|
]),
|
|
deps = [
|
|
"//packages/core",
|
|
"//packages/core/testing",
|
|
"//packages/platform-browser",
|
|
"//packages/platform-browser-dynamic",
|
|
"//packages/platform-browser/testing",
|
|
"//packages/upgrade/src/common",
|
|
"//packages/upgrade/src/common/test/helpers",
|
|
"//packages/upgrade/static",
|
|
],
|
|
)
|
|
|
|
ts_web_test_suite(
|
|
name = "test",
|
|
static_files = [
|
|
"//:angularjs_scripts",
|
|
],
|
|
deps = [
|
|
":test_lib",
|
|
],
|
|
)
|