Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Better TypeScript coverage support in IstanbulΒ #24993

@bcoe

Description

@bcoe

Hello Ben Coe here πŸ‘‹, I maintain the nyc and istanbuljs test coverage tools.

A good chunk of the bug reports opened on these repos relate to TypeScript parsing:

https://github.com/istanbuljs/nyc/issues?q=is%3Aissue+is%3Aopen+label%3ATypeScript

Given that:

  1. TypeScript is wildly popular, and continues to become more popular.
  2. folks want to collect coverage information as part of the testing cycle for their TypeScript projects.

I would love to work with you to add better TypeScript support to Istanbul.

Istanbul uses babel behind the scenes for instrumentation, I think that babel-preset-typescript could potentially be a good starting point for pulling this off -- perhaps we could simply swap out the underlying JavaScript parser for a TypeScript parser based on a flag?

Is there anyone on your end who might be interested in this joint project with the Istanbul folks?

flagging a couple folks on the Babel project too, in case they're at all interested in giving their two cents:

CC: @hzoo, @loganfsmyth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalRelates to another program, environment, or user action which we cannot control.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions