You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Or add .source which represent the js after compiled should work. So, user don't need to hard code typescript version and config, to ensure .source is identical with deno coverage .range.
Or use interface CoverageC8, with provide .source-map-cache, and should be better than CoveragePlaywright
The text was updated successfully, but these errors were encountered:
loynoir
changed the title
Current deno coverage implement is not compatible with istanbul
Current deno coverage interface is not compatible with istanbul
Aug 1, 2023
Comparison
c8 generate coverage, able to integrate with istanbul without hardcode
playwright generate coverage compatible with istanbul https://playwright.dev/docs/api/class-coverage
When integrate deno coverage with istanbul, need to hard code. Else geneate wrong report.
Interface Comparison
Reproduce
Adapt from https://playwright.dev/docs/api/class-coverage, which have similar interface like deno coverage.
When use below code, generate wrong report.
Workaround
Adapt from https://playwright.dev/docs/api/class-coverage, which have similar interface like deno coverage.
To generate correct report, must use hard code:
make sure using same typescript version with deno
make sure using same typescript config with deno
Suggestion
Or add
.source
which represent the js after compiled should work. So, user don't need to hard code typescript version and config, to ensure.source
is identical with deno coverage.range
.Or use interface
CoverageC8
, with provide.source-map-cache
, and should be better thanCoveragePlaywright
The text was updated successfully, but these errors were encountered: