Skip to content

Commit

Permalink
Use 'tool' instead of 'command' for js_run_devserver_test
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjacobs committed Aug 17, 2023
1 parent d4dd118 commit 4c5326c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 0 additions & 3 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ load("@aspect_rules_js//npm:repositories.bzl", "npm_import", "npm_translate_lock
npm_translate_lock(
name = "npm",
bins = {
"jasmine": {
"jasmine": "./bin/jasmine.js",
},
# derived from "bin" attribute in node_modules/typescript/package.json
"typescript": {
"tsc": "./bin/tsc",
Expand Down
7 changes: 6 additions & 1 deletion js/private/test/js_run_devserver/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@npm//js/private/test/js_run_devserver:jasmine/package_json.bzl", jasmine_bin = "bin")
load(":js_run_devserver_test.bzl", "js_run_devserver_test")

npm_link_all_packages(name = "node_modules")
Expand All @@ -11,7 +12,6 @@ js_run_devserver_test(
name = "node_modules_symlink_to_execroot_test",
args = ["node_modules_symlink_to_execroot.test.mjs"],
chdir = "js/private/test/js_run_devserver",
command = "./node_modules/.bin/jasmine",
data = [
"node_modules_symlink_to_execroot.test.mjs",

Expand All @@ -21,4 +21,9 @@ js_run_devserver_test(
":node_modules/@types/node",
":node_modules/jasmine",
],
tool = ":jasmine",
)

jasmine_bin.jasmine_binary(
name = "jasmine",
)
3 changes: 0 additions & 3 deletions npm/private/test/repositories_checked.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -13508,9 +13508,6 @@ def npm_repositories():
"isexe": ["2.0.0"],
"shebang-regex": ["3.0.0"],
},
bins = {
"jasmine": "./bin/jasmine.js",
},
)

npm_import(
Expand Down

0 comments on commit 4c5326c

Please sign in to comment.