@@ -3,8 +3,8 @@ load("@bazel_lib//lib:testing.bzl", "assert_contains")
33load ("@bazel_skylib//rules:build_test.bzl" , "build_test" )
44load ("@npm//:defs.bzl" , "npm_link_all_packages" )
55load ("@npm//:jasmine/package_json.bzl" , jasmine_bin = "bin" )
6- load ("@npm//:less/package_json.bzl" , less_bin = "bin" )
76load ("@npm_meaning-of-life__links//:defs.bzl" , npm_link_meaning_of_life = "npm_link_imported_package" )
7+ load ("@other_module//:less.bzl" , "lessc" )
88
99not_windows = select ({
1010 "@platforms//os:windows" : ["@platforms//:incompatible" ],
@@ -26,14 +26,9 @@ js_test(
2626 entry_point = "main.mjs" ,
2727)
2828
29- less_bin . lessc (
29+ lessc (
3030 name = "styles" ,
31- srcs = ["my.less" ],
32- outs = ["my.css" ],
33- args = [
34- "my.less" ,
35- "my.css" ,
36- ],
31+ css = "my.less" ,
3732)
3833
3934assert_contains (
@@ -83,9 +78,13 @@ build_test(
8378build_test (
8479 name = "other_module_run_binary_test" ,
8580 targets = [
86- # TODO: https://github.com/aspect-build/rules_js/issues/2725
8781 # js_run_binary() in @other_repo
88- # "@other_module//:my.css",
82+ "@other_module//:my.css" ,
83+ "@other_module//:styles" ,
84+
85+ # js_run_binary() with chdir in a subdir of @other_repo
86+ "@other_module//subdir:my.css" ,
87+ "@other_module//subdir:styles" ,
8988
9089 # js_run_binary() running a binary in @other_repo
9190 ":run_other_module_binary_test" ,
0 commit comments