File tree Expand file tree Collapse file tree 4 files changed +447
-20
lines changed
Expand file tree Collapse file tree 4 files changed +447
-20
lines changed Original file line number Diff line number Diff line change 1+ load ("@build_bazel_rules_nodejs//:index.bzl" , "js_library" )
2+ load ("@npm//@bazel/concatjs:index.bzl" , "karma_web_test_suite" )
3+ load ("//bazel/spec-bundling:index.bzl" , "spec_bundle" )
4+
5+ karma_web_test_suite (
6+ name = "test" ,
7+ browsers = [
8+ "//bazel/browsers/chromium:chromium" ,
9+ "//bazel/browsers/firefox:firefox" ,
10+ ],
11+ deps = [
12+ ":test_bundle" ,
13+ ],
14+ )
15+
16+ js_library (
17+ name = "test_lib" ,
18+ srcs = ["browser-test.spec.mjs" ],
19+ )
20+
21+ spec_bundle (
22+ name = "test_bundle" ,
23+ platform = "browser" ,
24+ workspace_name = "dev-infra" ,
25+ deps = [":test_lib" ],
26+ )
Original file line number Diff line number Diff line change 1+ /**
2+ * @license
3+ * Copyright Google LLC All Rights Reserved.
4+ *
5+ * Use of this source code is governed by an MIT-style license that can be
6+ * found in the LICENSE file at https://angular.io/license
7+ */
8+
9+ describe ( 'browser test' , ( ) => {
10+ it ( 'should work' , ( ) => {
11+ expect ( true ) . toBe ( true ) ;
12+ } ) ;
13+ } ) ;
Original file line number Diff line number Diff line change 101101 "@types/yarnpkg__lockfile" : " ^1.1.5" ,
102102 "jsdoc" : " ^3.6.7" ,
103103 "jsdom" : " ^19.0.0" ,
104+ "karma" : " ^6.3.15" ,
105+ "karma-chrome-launcher" : " ^3.1.0" ,
106+ "karma-firefox-launcher" : " ^2.1.2" ,
107+ "karma-jasmine" : " ^4.0.1" ,
108+ "karma-requirejs" : " ^1.1.0" ,
109+ "karma-sourcemap-loader" : " ^0.3.8" ,
104110 "minimist" : " ^1.2.5" ,
105111 "protobufjs" : " ^6.11.2" ,
112+ "requirejs" : " ^2.3.6" ,
106113 "rxjs" : " ^7.4.0" ,
107114 "uglify-js" : " ^3.14.2" ,
108115 "wait-on" : " ^6.0.0" ,
You can’t perform that action at this time.
0 commit comments