Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage with --all doesn't include tsx files #387

Closed
zfben opened this issue Mar 27, 2022 · 2 comments
Closed

Coverage with --all doesn't include tsx files #387

zfben opened this issue Mar 27, 2022 · 2 comments
Labels
bug help wanted Issue is well defined but needs assignment

Comments

@zfben
Copy link

zfben commented Mar 27, 2022

  • Version: v16.13.1
  • Platform: Darwin 21.4.0 Darwin Kernel Version 21.4.0: Mon Feb 21 20:34:37 PST 2022; root:xnu-8020.101.4~2/RELEASE_X86_64 x86_64

It only includes .ts files, how should I do let coverage includes .tsx files?
If I create a unit test for a tsx file, the tested tsx file will be included, but other tsx files don't be included.(I have used with --all)

@Lyokolux
Copy link

Lyokolux commented Apr 8, 2022

It does not include .vue files as well as @Demivan noticed in vitest-dev/vitest#680 (comment).

It seems an issue is already open in for it #355.
Here a related PR #357

@bcoe bcoe added bug help wanted Issue is well defined but needs assignment labels Apr 20, 2022
@larsthorup
Copy link

This issue can probably be closed, as it appears to now be fixed with this PR #357 released in c8@7.11.3. At least it now works for me.

@bcoe bcoe closed this as completed Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help wanted Issue is well defined but needs assignment
Projects
None yet
Development

No branches or pull requests

4 participants