angular-cn/packages/bazel/test/protractor/BUILD.bazel

35 lines
733 B
Python

load("//packages/bazel:index.bzl", "protractor_web_test_suite")
load("//tools:defaults.bzl", "ts_library")
ts_library(
name = "ts_spec",
testonly = True,
srcs = ["test.spec.ts"],
tsconfig = ":tsconfig.json",
deps = [
"@npm//@types/selenium-webdriver",
"@npm//protractor",
],
)
ts_library(
name = "ts_conf",
testonly = True,
srcs = ["conf.ts"],
tsconfig = ":tsconfig.json",
deps = [
"//packages/bazel/src/protractor/utils",
"@npm//protractor",
],
)
protractor_web_test_suite(
name = "test",
configuration = ":ts_conf",
data = ["//packages/bazel/src/protractor/utils"],
deps = [
":ts_spec",
"@npm//protractor",
],
)