33# Use of this source code is governed by an MIT-style license that can be
44# found in the LICENSE file at https://angular.dev/license
55
6- load ("//tools:defaults .bzl" , "nodejs_binary " , "nodejs_test " )
6+ load ("@aspect_rules_js//js:defs .bzl" , "js_binary " , "js_test " )
77
88"""
99 This test verifies that a set of top level symbols from a javascript file match a gold file.
@@ -13,27 +13,26 @@ def js_expected_symbol_test(name, src, golden, data = [], **kwargs):
1313 """This test verifies that a set of top level symbols from a javascript file match a gold file.
1414 """
1515 all_data = data + [
16- Label ("//tools/symbol-extractor:lib" ),
17- Label ("@npm//typescript" ),
16+ Label ("//tools/symbol-extractor:lib_rjs" ),
1817 src ,
1918 golden ,
2019 ]
21- entry_point = "//tools/symbol-extractor:cli.ts "
20+ entry_point = "//tools/symbol-extractor:cli.js "
2221
23- nodejs_test (
22+ js_test (
2423 name = name ,
2524 data = all_data ,
2625 entry_point = entry_point ,
2726 tags = kwargs .pop ("tags" , []) + ["symbol_extractor" ],
28- templated_args = ["$(rootpath %s)" % src , "$(rootpath %s)" % golden ],
27+ fixed_args = ["$(rootpath %s)" % src , "$(rootpath %s)" % golden ],
2928 ** kwargs
3029 )
3130
32- nodejs_binary (
31+ js_binary (
3332 name = name + ".accept" ,
3433 testonly = True ,
3534 data = all_data ,
3635 entry_point = entry_point ,
37- templated_args = ["$(rootpath %s)" % src , "$(rootpath %s)" % golden , "--accept" ],
36+ fixed_args = ["$(rootpath %s)" % src , "$(rootpath %s)" % golden , "--accept" ],
3837 ** kwargs
3938 )
0 commit comments