2018-10-04 16:14:14 -04:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "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",
|
|
|
|
"@rxjs",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
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 = [
|
2018-10-04 16:14:14 -04:00
|
|
|
"@ngdeps//node_modules/@webcomponents/custom-elements:src/native-shim.js",
|
|
|
|
"@ngdeps//node_modules/reflect-metadata:Reflect.js",
|
|
|
|
"@ngdeps//node_modules/zone.js:dist/zone.js",
|
|
|
|
"@ngdeps//node_modules/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",
|
|
|
|
],
|
|
|
|
)
|