2019-01-03 14:25:51 -05:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "nodejs_binary", "ts_library")
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "protractor_utils_tests_lib",
|
|
|
|
testonly = True,
|
|
|
|
srcs = ["index_test.ts"],
|
|
|
|
deps = [
|
|
|
|
"//packages/bazel/src/protractor/utils",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
nodejs_binary(
|
|
|
|
name = "fake-devserver",
|
|
|
|
testonly = True,
|
|
|
|
data = [
|
|
|
|
"fake-devserver.js",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//minimist",
|
2019-01-03 14:25:51 -05:00
|
|
|
],
|
2019-06-07 16:38:06 -04:00
|
|
|
entry_point = ":fake-devserver.ts",
|
2019-01-03 14:25:51 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "protractor_utils_tests",
|
|
|
|
size = "small",
|
|
|
|
srcs = [":protractor_utils_tests_lib"],
|
|
|
|
data = [
|
|
|
|
":fake-devserver",
|
|
|
|
],
|
|
|
|
)
|