2021-07-06 09:45:55 -04:00
|
|
|
load("//dev-infra:defaults.bzl", "jasmine_node_test", "ts_library")
|
2020-08-26 16:49:43 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "caretaker",
|
2020-09-14 14:24:15 -04:00
|
|
|
srcs = glob(
|
|
|
|
["**/*.ts"],
|
|
|
|
exclude = ["**/*.spec.ts"],
|
|
|
|
),
|
2020-08-26 16:49:43 -04:00
|
|
|
visibility = ["//dev-infra:__subpackages__"],
|
|
|
|
deps = [
|
2020-09-30 16:16:33 -04:00
|
|
|
"//dev-infra/release/versioning",
|
2020-09-11 15:13:36 -04:00
|
|
|
"//dev-infra/utils",
|
2021-07-14 15:43:28 -04:00
|
|
|
"@npm//@types/inquirer",
|
2020-09-11 15:13:36 -04:00
|
|
|
"@npm//@types/node",
|
|
|
|
"@npm//@types/node-fetch",
|
2020-08-26 16:49:43 -04:00
|
|
|
"@npm//@types/yargs",
|
2021-07-14 15:43:28 -04:00
|
|
|
"@npm//inquirer",
|
2020-09-11 15:13:36 -04:00
|
|
|
"@npm//multimatch",
|
|
|
|
"@npm//node-fetch",
|
|
|
|
"@npm//typed-graphqlify",
|
|
|
|
"@npm//yaml",
|
2020-08-26 16:49:43 -04:00
|
|
|
"@npm//yargs",
|
|
|
|
],
|
|
|
|
)
|
2020-09-14 14:24:15 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
|
|
|
testonly = True,
|
|
|
|
srcs = glob(["**/*.spec.ts"]),
|
|
|
|
deps = [
|
|
|
|
":caretaker",
|
|
|
|
"//dev-infra/release/versioning",
|
|
|
|
"//dev-infra/utils",
|
|
|
|
"//dev-infra/utils/testing",
|
|
|
|
"@npm//@types/jasmine",
|
|
|
|
"@npm//@types/node",
|
|
|
|
"@npm//@types/semver",
|
|
|
|
"@npm//semver",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
|
|
|
deps = [
|
|
|
|
":test_lib",
|
|
|
|
],
|
|
|
|
)
|