Skip to content

Commit 7b15a15

Browse files
committed
build: migrate tests infrastructure to ts_project
The miscellaneous test infrastructure targets within `tests/` have been migrated to the `rules_js` ts_project rule.
1 parent 8b68d9f commit 7b15a15

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//tools:defaults.bzl", "ts_library")
1+
load("//tools:interop.bzl", "ts_project")
22

33
# Copyright Google Inc. All Rights Reserved.
44
#
@@ -8,15 +8,15 @@ package(default_visibility = ["//visibility:public"])
88

99
licenses(["notice"])
1010

11-
ts_library(
11+
ts_project(
1212
name = "jobs_test_lib",
1313
srcs = glob(
1414
include = [
1515
"**/*.ts",
1616
],
1717
),
1818
deps = [
19-
"//packages/angular_devkit/architect",
20-
"@npm//@types/node",
19+
"//:root_modules/@types/node",
20+
"//packages/angular_devkit/architect:architect_rjs",
2121
],
2222
)
Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("//tools:defaults.bzl", "ts_library")
1+
load("//tools:interop.bzl", "ts_project")
22

33
# Copyright Google Inc. All Rights Reserved.
44
#
@@ -8,7 +8,7 @@ package(default_visibility = ["//visibility:public"])
88

99
licenses(["notice"])
1010

11-
ts_library(
11+
ts_project(
1212
name = "file_system_engine_host_test_lib",
1313
srcs = glob(
1414
include = [
@@ -21,14 +21,11 @@ ts_library(
2121
"**/*.js",
2222
],
2323
),
24-
deps = [
24+
interop_deps = [
2525
"//packages/angular_devkit/schematics",
26-
# ":testing",
27-
# "//packages/angular_devkit/core",
28-
# "//packages/angular_devkit/core/node",
29-
# "@npm//rxjs",
30-
#
31-
"@npm//@types/jasmine",
32-
"@npm//@types/node",
26+
],
27+
deps = [
28+
"//:root_modules/@types/jasmine",
29+
"//:root_modules/@types/node",
3330
],
3431
)

0 commit comments

Comments
 (0)