From 7b15a15af85918f9802685a463ccdfc0f920b35c Mon Sep 17 00:00:00 2001 From: Charles Lyding <19598772+clydin@users.noreply.github.com> Date: Thu, 2 Jan 2025 10:16:45 -0500 Subject: [PATCH] build: migrate tests infrastructure to `ts_project` The miscellaneous test infrastructure targets within `tests/` have been migrated to the `rules_js` ts_project rule. --- .../architect/node/jobs/BUILD.bazel | 8 ++++---- .../tools/file-system-engine-host/BUILD.bazel | 17 +++++++---------- 2 files changed, 11 insertions(+), 14 deletions(-) diff --git a/tests/angular_devkit/architect/node/jobs/BUILD.bazel b/tests/angular_devkit/architect/node/jobs/BUILD.bazel index c2a8230093..912028a0b1 100644 --- a/tests/angular_devkit/architect/node/jobs/BUILD.bazel +++ b/tests/angular_devkit/architect/node/jobs/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "ts_library") +load("//tools:interop.bzl", "ts_project") # Copyright Google Inc. All Rights Reserved. # @@ -8,7 +8,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -ts_library( +ts_project( name = "jobs_test_lib", srcs = glob( include = [ @@ -16,7 +16,7 @@ ts_library( ], ), deps = [ - "//packages/angular_devkit/architect", - "@npm//@types/node", + "//:root_modules/@types/node", + "//packages/angular_devkit/architect:architect_rjs", ], ) diff --git a/tests/angular_devkit/schematics/tools/file-system-engine-host/BUILD.bazel b/tests/angular_devkit/schematics/tools/file-system-engine-host/BUILD.bazel index 2042fdb3a2..b7736f06a4 100644 --- a/tests/angular_devkit/schematics/tools/file-system-engine-host/BUILD.bazel +++ b/tests/angular_devkit/schematics/tools/file-system-engine-host/BUILD.bazel @@ -1,4 +1,4 @@ -load("//tools:defaults.bzl", "ts_library") +load("//tools:interop.bzl", "ts_project") # Copyright Google Inc. All Rights Reserved. # @@ -8,7 +8,7 @@ package(default_visibility = ["//visibility:public"]) licenses(["notice"]) -ts_library( +ts_project( name = "file_system_engine_host_test_lib", srcs = glob( include = [ @@ -21,14 +21,11 @@ ts_library( "**/*.js", ], ), - deps = [ + interop_deps = [ "//packages/angular_devkit/schematics", - # ":testing", - # "//packages/angular_devkit/core", - # "//packages/angular_devkit/core/node", - # "@npm//rxjs", - # - "@npm//@types/jasmine", - "@npm//@types/node", + ], + deps = [ + "//:root_modules/@types/jasmine", + "//:root_modules/@types/node", ], )