Skip to content

Commit 2fe8c5a

Browse files
committed
test(@angular/cli): test with Bazel
1 parent 17966d3 commit 2fe8c5a

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

packages/angular/cli/BUILD.bazel

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
licenses(["notice"]) # MIT
77

88
load("@npm_bazel_typescript//:index.bzl", "ts_library")
9+
load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
910
load("//tools:ts_json_schema.bzl", "ts_json_schema")
1011

1112
package(default_visibility = ["//visibility:public"])
@@ -221,3 +222,27 @@ ts_json_schema(
221222
"commands/definitions.json",
222223
],
223224
)
225+
226+
ts_library(
227+
name = "angular-cli_test_lib",
228+
testonly = True,
229+
srcs = glob(
230+
include = [
231+
"**/*_spec.ts",
232+
"**/*_spec_large.ts",
233+
],
234+
),
235+
# strict_checks = False,
236+
tsconfig = "//:tsconfig-test.json",
237+
deps = [
238+
":angular-cli",
239+
"//packages/angular_devkit/core",
240+
"@npm//@types/jasmine",
241+
"@npm//@types/node",
242+
],
243+
)
244+
245+
jasmine_node_test(
246+
name = "angular-cli_test",
247+
srcs = [":angular-cli_test_lib"],
248+
)

0 commit comments

Comments
 (0)