2019-06-18 13:39:29 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
2019-02-11 17:18:29 -05:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
|
|
|
testonly = True,
|
|
|
|
srcs = glob(["**/*.ts"]),
|
|
|
|
deps = [
|
|
|
|
"//packages/common",
|
|
|
|
"//packages/common/testing",
|
2019-04-23 10:16:08 -04:00
|
|
|
"//packages/common/upgrade",
|
|
|
|
"//packages/core",
|
2019-02-11 17:18:29 -05:00
|
|
|
"//packages/core/testing",
|
|
|
|
"//packages/upgrade/static",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "test",
|
2020-01-10 16:39:52 -05:00
|
|
|
templated_args = ["--node_options=--require=$(rlocation $(location //tools/testing:node_es5))"],
|
2019-02-11 17:18:29 -05:00
|
|
|
deps = [
|
|
|
|
":test_lib",
|
2020-01-10 16:39:37 -05:00
|
|
|
"//tools/testing:node",
|
2020-01-10 16:39:52 -05:00
|
|
|
"//tools/testing:node_es5",
|
2019-02-11 17:18:29 -05:00
|
|
|
],
|
|
|
|
)
|