Skip to content

Commit

Permalink
fix(typescript): collect coverage in ts_project
Browse files Browse the repository at this point in the history
Fixes #2762
  • Loading branch information
subnova authored and alexeagle committed Jun 21, 2021
1 parent 6ccf283 commit 8e7bc1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/typescript/internal/ts_project.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ def _ts_project_impl(ctx):
for dep in ctx.attr.deps
if TsConfigInfo in dep
])),
coverage_common.instrumented_files_info(
ctx,
source_attributes = ["srcs"],
dependency_attributes = ["deps"],
extensions = ["ts", "tsx"],
),
]

# Only provide DeclarationInfo if there are some typings.
Expand Down

0 comments on commit 8e7bc1c

Please sign in to comment.