-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test for bazel browser configuration
Adds a test for the Bazel browser configuration.
- Loading branch information
1 parent
15b89a6
commit 6516473
Showing
4 changed files
with
447 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
load("@build_bazel_rules_nodejs//:index.bzl", "js_library") | ||
load("@npm//@bazel/concatjs:index.bzl", "karma_web_test_suite") | ||
load("//bazel/spec-bundling:index.bzl", "spec_bundle") | ||
|
||
karma_web_test_suite( | ||
name = "test", | ||
browsers = [ | ||
"//bazel/browsers/chromium:chromium", | ||
"//bazel/browsers/firefox:firefox", | ||
], | ||
deps = [ | ||
":test_bundle", | ||
], | ||
) | ||
|
||
js_library( | ||
name = "test_lib", | ||
srcs = ["browser-test.spec.mjs"], | ||
) | ||
|
||
spec_bundle( | ||
name = "test_bundle", | ||
platform = "browser", | ||
workspace_name = "dev-infra", | ||
deps = [":test_lib"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
|
||
describe('browser test', () => { | ||
it('should work', () => { | ||
expect(true).toBe(true); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.