1
1
package (default_visibility = ["//visibility:public" ])
2
2
3
3
load ("@io_bazel_rules_sass//sass:sass.bzl" , "sass_library" )
4
- load ("@build_bazel_rules_typescript//:defs.bzl" , "ts_library" , "ts_web_test" )
5
- load ("//tools:defaults.bzl" , "ng_module" )
4
+ load ("//tools:defaults.bzl" , "ng_module" , "ng_test_library" , "ng_web_test_suite" )
6
5
7
6
ng_module (
8
7
name = "a11y" ,
@@ -17,8 +16,7 @@ ng_module(
17
16
"//src/cdk/keycodes" ,
18
17
"//src/cdk/observers" ,
19
18
"//src/cdk/platform" ,
20
- ],
21
- tsconfig = "//src/cdk:tsconfig-build.json" ,
19
+ ]
22
20
)
23
21
24
22
# TODO(jelbourn): remove this when sass_library acts like a filegroup
@@ -32,35 +30,22 @@ sass_library(
32
30
srcs = [":a11y_scss_partials" ],
33
31
)
34
32
35
- ts_library (
33
+ ng_test_library (
36
34
name = "a11y_test_sources" ,
37
- testonly = 1 ,
38
35
srcs = glob (["**/*.spec.ts" ]),
39
36
deps = [
40
- ":a11y" ,
37
+ "@angular//packages/platform-browser" ,
38
+ "@rxjs" ,
39
+ "@rxjs//operators" ,
41
40
"//src/cdk/keycodes" ,
42
41
"//src/cdk/observers" ,
43
42
"//src/cdk/platform" ,
44
43
"//src/cdk/testing" ,
45
- "@rxjs" ,
46
- "@rxjs//operators" ,
47
- ],
48
- tsconfig = "//src/cdk:tsconfig-build.json" ,
44
+ ":a11y" ,
45
+ ]
49
46
)
50
47
51
- ts_web_test (
48
+ ng_web_test_suite (
52
49
name = "unit_tests" ,
53
- # TODO(mmalerba): re-enable once ngfactory issue is resolved.
54
- tags = ["manual" ],
55
- bootstrap = [
56
- "//:web_test_bootstrap_scripts" ,
57
- ],
58
- # Do not sort
59
- deps = [
60
- "//:tslib_bundle" ,
61
- "//:angular_bundles" ,
62
- "//:angular_test_bundles" ,
63
- "//test:angular_test_init" ,
64
- ":a11y_test_sources" ,
65
- ],
50
+ deps = [":a11y_test_sources" ],
66
51
)
0 commit comments