@@ -12,7 +12,12 @@ filegroup(
1212ts_library (
1313 name = "schematics" ,
1414 module_name = "@angular/material/schematics" ,
15- srcs = glob (["**/*.ts" ], exclude = ["**/*.spec.ts" , "update/test-cases/**/*.ts" , "**/files/**/*" ]),
15+ srcs = glob (["**/*.ts" ], exclude = [
16+ "**/*.spec.ts" ,
17+ "**/files/**/*" ,
18+ "test-setup/**/*" ,
19+ "update/test-cases/**/*" ,
20+ ]),
1621 tsconfig = ":tsconfig.json" ,
1722)
1823
@@ -30,12 +35,11 @@ jasmine_node_test(
3035 name = "unit_tests" ,
3136 srcs = [":schematics_test_sources" ],
3237 data = [":schematics_assets" , ":schematics_test_cases" ],
33- deps = [":copy-collection-file" , ":copy-migration-file" ],
3438)
3539
3640ts_library (
3741 name = "schematics_test_sources" ,
38- srcs = glob (["**/*.spec.ts" ], exclude = ["**/files/**/*" ]),
42+ srcs = glob (["**/*.spec.ts" , "test-setup/**/*.ts" ], exclude = ["**/files/**/*" ]),
3943 deps = [":schematics" ],
4044 tsconfig = ":tsconfig.json" ,
4145 testonly = True ,
@@ -46,23 +50,3 @@ filegroup(
4650 srcs = glob (["update/test-cases/**/*_input.ts" , "update/test-cases/**/*_expected_output.ts" ]),
4751 testonly = True ,
4852)
49-
50- # Workaround for https://github.com/bazelbuild/rules_typescript/issues/154
51- genrule (
52- name = "copy-collection-file" ,
53- srcs = ["collection.json" ],
54- outs = ["test-collection.json" ],
55- cmd = "cp $< $@" ,
56- output_to_bindir = True ,
57- testonly = True ,
58- )
59-
60- # Workaround for https://github.com/bazelbuild/rules_typescript/issues/154
61- genrule (
62- name = "copy-migration-file" ,
63- srcs = ["migration.json" ],
64- outs = ["test-migration.json" ],
65- cmd = "cp $< $@" ,
66- output_to_bindir = True ,
67- testonly = True ,
68- )
0 commit comments