| load("@build_bazel_rules_typescript//:defs.bzl", "ts_library", "ts_web_test_suite") |
| |
| ts_library( |
| name = "lib", |
| srcs = ["decrement.ts"], |
| ) |
| |
| ts_library( |
| name = "tests", |
| testonly = 1, |
| srcs = glob(["*.spec.ts"]), |
| tsconfig = ":tsconfig.json", |
| deps = [":lib"], |
| ) |
| |
| ts_web_test_suite( |
| name = "testing", |
| browsers = [ |
| "@io_bazel_rules_webtesting//browsers:chromium-local", |
| "@io_bazel_rules_webtesting//browsers:firefox-local", |
| ], |
| static_files = [ |
| "static_script.js", |
| ], |
| deps = [ |
| ":tests", |
| ], |
| ) |
| |
| ts_web_test_suite( |
| name = "testing_sauce", |
| browsers = [ |
| "@io_bazel_rules_webtesting//browsers/sauce:chrome-win10", |
| ], |
| tags = [ |
| "sauce", |
| # TODO(alexeagle): enable on CI once we have set the SAUCE env variables |
| "manual", |
| ], |
| deps = [ |
| ":tests", |
| ], |
| ) |