Skip to content

Commit 02bb00e

Browse files
committed
chore: test runs
1 parent 3575a4c commit 02bb00e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

frontend/angular/BUILD.bazel

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ TOOLS = [
1919
":node_modules/@angular-devkit/build-angular",
2020
]
2121

22+
TEST_DEPS = [
23+
# FIXME: figure out exactly which are needed
24+
":node_modules",
25+
# ":node_modules/jasmine-core",
26+
# ":node_modules/karma-chrome-launcher",
27+
# ":node_modules/karma-coverage",
28+
# ":node_modules/karma-jasmine",
29+
# ":node_modules/karma-jasmine-html-reporter",
30+
]
31+
2232
RUNTIME = [
2333
":node_modules/@angular/core",
2434
":node_modules/@angular/platform-browser",
@@ -49,3 +59,18 @@ http_server.http_server_binary(
4959
args = [package_name() + "/dist/app/browser"],
5060
data = [":build"],
5161
)
62+
63+
angular_cli.ng_test(
64+
name = "test",
65+
args = [
66+
"test",
67+
"--watch=false",
68+
],
69+
chdir = package_name(),
70+
data = [
71+
":config",
72+
":src",
73+
":tsconfig.spec.json",
74+
] + TOOLS + RUNTIME + TEST_DEPS,
75+
tags = ["local"],
76+
)

0 commit comments

Comments
 (0)