2019-01-16 10:19:01 +01:00
|
|
|
load("//tools:defaults.bzl", "ts_library", "ts_web_test_suite")
|
2018-02-28 09:45:11 -08:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "test_lib",
|
2018-10-15 23:24:22 -07:00
|
|
|
testonly = True,
|
2018-02-28 09:45:11 -08: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 09:54:42 -08:00
|
|
|
"@npm//rxjs",
|
2018-02-28 09:45:11 -08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "elements_test_bootstrap_scripts",
|
2018-10-15 23:24:22 -07:00
|
|
|
testonly = True,
|
2018-02-28 09:45:11 -08:00
|
|
|
# do not sort
|
|
|
|
srcs = [
|
2019-06-18 21:26:53 -07:00
|
|
|
"@npm//:node_modules/@webcomponents/custom-elements/src/native-shim.js",
|
|
|
|
"@npm//:node_modules/reflect-metadata/Reflect.js",
|
|
|
|
"@npm//:node_modules/zone.js/dist/zone.js",
|
|
|
|
"@npm//:node_modules/zone.js/dist/zone-testing.js",
|
2018-02-28 09:45:11 -08:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
2018-05-11 09:43:06 -07:00
|
|
|
ts_web_test_suite(
|
2018-02-28 09:45:11 -08:00
|
|
|
name = "test",
|
|
|
|
bootstrap = [
|
|
|
|
":elements_test_bootstrap_scripts",
|
|
|
|
],
|
|
|
|
# do not sort
|
|
|
|
deps = [
|
|
|
|
":test_lib",
|
|
|
|
],
|
|
|
|
)
|