2020-01-10 19:00:49 -05:00
|
|
|
load("//tools:defaults.bzl", "jasmine_node_test", "ts_library")
|
2017-12-16 14:35:47 -05:00
|
|
|
|
2019-01-16 04:19:01 -05:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
2017-12-16 14:35:47 -05:00
|
|
|
ts_library(
|
|
|
|
name = "browser",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["init_browser_spec.ts"],
|
|
|
|
deps = [
|
2018-10-24 19:02:25 -04:00
|
|
|
"//packages/compiler",
|
2017-12-16 14:35:47 -05:00
|
|
|
"//packages/core/testing",
|
|
|
|
"//packages/platform-browser-dynamic/testing",
|
|
|
|
"//packages/platform-browser/animations",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "node",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["init_node_spec.ts"],
|
|
|
|
deps = [
|
2018-10-24 19:02:25 -04:00
|
|
|
"//packages/compiler",
|
2017-12-16 14:35:47 -05:00
|
|
|
"//packages/core/testing",
|
|
|
|
"//packages/platform-server",
|
|
|
|
"//packages/platform-server/testing",
|
2019-10-05 23:06:53 -04:00
|
|
|
"//packages/zone.js/lib",
|
2019-02-20 12:54:42 -05:00
|
|
|
"@npm//domino",
|
2017-12-16 14:35:47 -05:00
|
|
|
],
|
|
|
|
)
|
2018-04-06 12:53:10 -04:00
|
|
|
|
|
|
|
ts_library(
|
|
|
|
name = "node_no_angular",
|
|
|
|
testonly = 1,
|
|
|
|
srcs = ["init_node_no_angular_spec.ts"],
|
2018-10-04 16:14:14 -04:00
|
|
|
deps = [
|
|
|
|
"//packages:types",
|
|
|
|
],
|
2018-04-06 12:53:10 -04:00
|
|
|
)
|
2020-01-10 19:00:49 -05:00
|
|
|
|
|
|
|
# A test to verify that jasmine_node_test targets fail as expected.
|
|
|
|
# This is to catch any future regressions to jasmine_node_test where
|
|
|
|
# tests pass silently without executing.
|
|
|
|
# See https://github.com/bazelbuild/rules_nodejs/pull/1540 for an example
|
|
|
|
# of a potential regression.
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "fail_test",
|
|
|
|
srcs = ["fail.spec.js"],
|
|
|
|
expected_exit_code = 55,
|
|
|
|
)
|
|
|
|
|
|
|
|
# A test to verify that jasmine_node_test targets fail as expected
|
|
|
|
# when there is a bootstrap script set.
|
|
|
|
# This is to catch any future regressions to jasmine_node_test where
|
|
|
|
# tests pass silently without executing.
|
|
|
|
# See https://github.com/bazelbuild/rules_nodejs/pull/1540 for an example
|
|
|
|
# of a potential regression.
|
|
|
|
jasmine_node_test(
|
|
|
|
name = "fail_bootstrap_test",
|
|
|
|
srcs = ["fail.spec.js"],
|
|
|
|
bootstrap = ["//tools/testing:node_es5"],
|
|
|
|
expected_exit_code = 55,
|
|
|
|
)
|