| # Copyright 2017 The Bazel Authors. All rights reserved. |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| load("@npm_bazel_karma//:index.bzl", "ts_web_test_suite") |
| |
| ts_web_test_suite( |
| name = "testing", |
| srcs = glob( |
| ["*.js"], |
| exclude = [ |
| "unnamed-amd-module.js", |
| "init-test.js", |
| ], |
| ), |
| browsers = [ |
| "@io_bazel_rules_webtesting//browsers:chromium-local", |
| "@io_bazel_rules_webtesting//browsers:firefox-local", |
| ], |
| static_files = [ |
| "unnamed-amd-module.js", |
| # Add the "init-test.js" file to the "static_files" as well. This simulates |
| # a scenario where a developer has a NPM package in the "deps" that transitively |
| # brings in "tslib", whereas the target in the "static_files" can also bring |
| # in "tslib" transitively. |
| "init-test.js", |
| ], |
| deps = [ |
| "init-test.js", |
| "requirejs-config.js", |
| ], |
| ) |