blob: a0387f33ab2e60b7b9c2af032af76bcc159fcd95 [file] [log] [blame]
Matthew Soulanille376d7972020-06-01 15:50:07 -07001# Copyright 2020 The Pigweed Authors
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may not
4# use this file except in compliance with the License. You may obtain a copy of
5# the License at
6#
7# https://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations under
13# the License.
14
15package(default_visibility = ["//visibility:public"])
16
17load("@npm_bazel_typescript//:index.bzl", "ts_library")
18load("@npm_bazel_jasmine//:index.bzl", "jasmine_node_test")
19
20
21ts_library(
22 name = "transport_lib",
23 srcs = [
24 "web_serial_transport.ts",
25 ],
26 deps = [],
27)
28
29ts_library(
30 name = "transport_lib_test",
31 testonly = True,
32 srcs = [
33 "web_serial_transport_test.ts",
34 ],
35 deps = [
36 ":transport_lib",
37 "@npm//jasmine",
38 "@npm//@types/jasmine",
39 ],
40)
41
42jasmine_node_test(
43 name = "test",
44 srcs = [
45 ":transport_lib_test",
46 ],
47 deps = [
48 ":transport_lib",
49 ],
50)