| load("//infra-sk:index.bzl", "nodejs_test", "ts_library") | |
| nodejs_test( | |
| name = "util_nodejs_test", | |
| src = "util_nodejs_test.ts", | |
| deps = [ | |
| ":util_ts_lib", | |
| "@npm//@types/chai", | |
| "@npm//@types/express", | |
| "@npm//chai", | |
| "@npm//express", | |
| "@npm//puppeteer", | |
| ], | |
| ) | |
| ts_library( | |
| name = "util_ts_lib", | |
| srcs = ["util.ts"], | |
| data = ["@google_chrome//:all_files"], # Provides Google Chrome, libraries and fonts. | |
| visibility = ["//visibility:public"], | |
| deps = ["@npm//puppeteer"], | |
| ) |