Skip to content

Commit

Permalink
test: add test for bazel browser configuration
Browse files Browse the repository at this point in the history
Adds a test for the Bazel browser configuration.
  • Loading branch information
devversion committed Feb 12, 2022
1 parent 15b89a6 commit 6516473
Show file tree
Hide file tree
Showing 4 changed files with 447 additions and 20 deletions.
26 changes: 26 additions & 0 deletions bazel/browsers/test/BUILD.bazel
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"],
)
13 changes: 13 additions & 0 deletions bazel/browsers/test/browser-test.spec.mjs
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);
});
});
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,15 @@
"@types/yarnpkg__lockfile": "^1.1.5",
"jsdoc": "^3.6.7",
"jsdom": "^19.0.0",
"karma": "^6.3.15",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^2.1.2",
"karma-jasmine": "^4.0.1",
"karma-requirejs": "^1.1.0",
"karma-sourcemap-loader": "^0.3.8",
"minimist": "^1.2.5",
"protobufjs": "^6.11.2",
"requirejs": "^2.3.6",
"rxjs": "^7.4.0",
"uglify-js": "^3.14.2",
"wait-on": "^6.0.0",
Expand Down
Loading

0 comments on commit 6516473

Please sign in to comment.