| load("//infra-sk:index.bzl", "karma_test", "sk_demo_page_server", "sk_element", "sk_element_puppeteer_test", "sk_page") |
| |
| sk_demo_page_server( |
| name = "demo_page_server", |
| sk_page = ":gold-status-sk-demo", |
| ) |
| |
| sk_element( |
| name = "gold-status-sk", |
| sass_deps = [ |
| "//status/modules:styles_sass_lib", |
| ], |
| sass_srcs = ["gold-status-sk.scss"], |
| ts_deps = [ |
| "//golden/modules:rpc_types_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 = [ |
| "gold-status-sk.ts", |
| "index.ts", |
| ], |
| visibility = ["//visibility:public"], |
| ) |
| |
| sk_page( |
| name = "gold-status-sk-demo", |
| html_file = "gold-status-sk-demo.html", |
| sk_element_deps = [ |
| "//infra-sk/modules/theme-chooser-sk", |
| ":gold-status-sk", |
| ], |
| ts_deps = [ |
| "//golden/modules:rpc_types_ts_lib", |
| "//:node_modules/fetch-mock", |
| ], |
| ts_entry_point = "gold-status-sk-demo.ts", |
| ) |
| |
| sk_element_puppeteer_test( |
| name = "gold-status-sk_puppeteer_test", |
| src = "gold-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 = "gold-status-sk_test", |
| src = "gold-status-sk_test.ts", |
| deps = [ |
| ":gold-status-sk", |
| "//:node_modules/@types/chai", |
| "//:node_modules/chai", |
| "//:node_modules/fetch-mock", |
| "//golden/modules:rpc_types_ts_lib", |
| "//infra-sk/modules:dom_ts_lib", |
| "//infra-sk/modules:test_util_ts_lib", |
| ], |
| ) |