2019-01-16 04:19:01 -05:00
|
|
|
load("//tools:defaults.bzl", "ts_library", "ts_web_test_suite")
|
2018-02-28 12:45:11 -05:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
2018-10-16 02:24:22 -04:00
|
|
|
testonly = True,
|
2018-02-28 12:45:11 -05:00
|
|
|
srcs = glob(["**/*.ts"]),
|
|
|
|
deps = [
|
|
|
|
"//packages:types",
|
|
|
|
"//packages/compiler",
|
|
|
|
"//packages/core",
|
|
|
|
"//packages/core/testing",
|
|
|
|
"//packages/elements",
|
|
|
|
"//packages/platform-browser",
|
|
|
|
"//packages/platform-browser-dynamic",
|
|
|
|
"//packages/platform-browser-dynamic/testing",
|
|
|
|
"//packages/platform-browser/testing",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//rxjs",
|
2018-02-28 12:45:11 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "elements_test_bootstrap_scripts",
|
2018-10-16 02:24:22 -04:00
|
|
|
testonly = True,
|
2018-02-28 12:45:11 -05:00
|
|
|
# do not sort
|
|
|
|
srcs = [
|
2019-06-19 00:26:53 -04:00
|
|
|
"@npm//:node_modules/@webcomponents/custom-elements/src/native-shim.js",
|
|
|
|
"@npm//:node_modules/reflect-metadata/Reflect.js",
|
2019-10-05 23:06:53 -04:00
|
|
|
"//packages/zone.js/dist:zone.js",
|
|
|
|
"//packages/zone.js/dist:zone-testing.js",
|
2018-02-28 12:45:11 -05:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-05-11 12:43:06 -04:00
|
|
|
ts_web_test_suite(
|
2018-02-28 12:45:11 -05:00
|
|
|
name = "test",
|
|
|
|
bootstrap = [
|
|
|
|
":elements_test_bootstrap_scripts",
|
|
|
|
],
|
|
|
|
# do not sort
|
|
|
|
deps = [
|
|
|
|
":test_lib",
|
|
|
|
],
|
|
|
|
)
|