2022-12-13 21:04:58 +00:00
load("//tools:defaults.bzl", "karma_web_test_suite", "ts_library", "zone_compatible_jasmine_node_test")
2020-01-14 14:31:13 +00:00
load("//tools/circular_dependency_test:index.bzl", "circular_dependency_test")
circular_dependency_test(
name = "circular_deps_test",
2022-12-13 21:04:58 +00:00
entry_point = "angular/packages/forms/index.mjs",
2020-01-14 14:31:13 +00:00
deps = ["//packages/forms"],
)
2017-12-17 23:10:54 +00:00
ts_library(
name = "test_lib",
2018-10-16 06:24:22 +00:00
testonly = True,
2017-12-17 23:10:54 +00:00
srcs = glob(["**/*.ts"]),
2019-12-06 15:17:09 +00:00
# Visible to //:saucelabs_unit_tests_poc target
2018-12-18 06:09:39 +00:00
visibility = ["//:__pkg__"],
2017-12-17 23:10:54 +00:00
deps = [
2019-08-23 02:16:25 +00:00
"//packages/common",
2017-12-17 23:10:54 +00:00
"//packages/core",
"//packages/core/testing",
"//packages/forms",
"//packages/platform-browser",
"//packages/platform-browser/testing",
2018-11-06 22:02:22 +00:00
"//packages/private/testing",
2019-02-20 17:54:42 +00:00
"@npm//rxjs",
2017-12-17 23:10:54 +00:00
],
)
2022-12-13 21:04:58 +00:00
# Tests rely on `async/await` for a `waitForAsync` test.
# This syntax needs to be downleveled until ZoneJS supports it.
zone_compatible_jasmine_node_test(
2017-12-17 23:10:54 +00:00
name = "test",
2022-12-10 14:23:48 +00:00
bootstrap = ["//tools/testing:node"],
2017-12-17 23:10:54 +00:00
deps = [
":test_lib",
],
)
2019-11-13 17:08:38 +00:00
karma_web_test_suite(
2017-12-17 23:10:54 +00:00
name = "test_web",
2020-04-14 14:24:17 +00:00
tags = [
# disabled on 2020-04-14 due to failure on saucelabs monitor job
# https://app.circleci.com/pipelines/github/angular/angular/13320/workflows/9ca3527a-d448-4a64-880a-fb4de9d1fece/jobs/680645
# ```
# IE 11.0.0 (Windows 8.1.0.0) template-driven forms integration tests basic functionality should report properties which are written outside of template bindings FAILED
# InvalidStateError: InvalidStateError
# ```
2021-10-15 20:45:56 +00:00
"fixme-saucelabs",
2020-04-14 14:24:17 +00:00
],
2017-12-17 23:10:54 +00:00
deps = [
":test_lib",
],
)