blob: 73902b254b95df41c46da9a7d01e7bd738298a36 [file] [log] [blame] [edit]
load("//infra-sk:index.bzl", "karma_test", "sk_demo_page_server", "sk_element", "sk_element_puppeteer_test", "sk_page")
sk_element(
name = "bugs-status-sk",
sass_deps = [
"//status/modules:styles_sass_lib",
],
sass_srcs = ["bugs-status-sk.scss"],
ts_deps = [
"//bugs-central/modules/json:index_ts_lib",
"//infra-sk/modules/ElementSk:index_ts_lib",
"//elements-sk/modules:define_ts_lib",
"//elements-sk/modules:errormessage_ts_lib",
"//infra-sk/modules:jsonorthrow_ts_lib",
"//:node_modules/lit",
],
ts_srcs = [
"bugs-status-sk.ts",
"index.ts",
],
visibility = ["//visibility:public"],
)
sk_page(
name = "bugs-status-sk-demo",
html_file = "bugs-status-sk-demo.html",
sk_element_deps = [
"//infra-sk/modules/theme-chooser-sk",
":bugs-status-sk",
],
ts_deps = [
"//bugs-central/modules/json:index_ts_lib",
"//:node_modules/fetch-mock",
],
ts_entry_point = "bugs-status-sk-demo.ts",
)
sk_element_puppeteer_test(
name = "bugs-status-sk_puppeteer_test",
src = "bugs-status-sk_puppeteer_test.ts",
sk_demo_page_server = ":demo_page_server",
deps = [
"//:node_modules/@types/chai",
"//:node_modules/chai",
"//puppeteer-tests:util_ts_lib",
],
)
karma_test(
name = "bugs-status-sk_test",
src = "bugs-status-sk_test.ts",
deps = [
":bugs-status-sk",
"//:node_modules/@types/chai",
"//:node_modules/chai",
"//:node_modules/fetch-mock",
"//bugs-central/modules/json:index_ts_lib",
"//infra-sk/modules:dom_ts_lib",
"//infra-sk/modules:test_util_ts_lib",
],
)
sk_demo_page_server(
name = "demo_page_server",
sk_page = ":bugs-status-sk-demo",
)