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 doesn't report on .ts files #6713

Closed
adrienharnay opened this issue Jul 18, 2018 · 4 comments
Closed

Coverage doesn't report on .ts files #6713

adrienharnay opened this issue Jul 18, 2018 · 4 comments

Comments

@adrienharnay
Copy link

🐛 Bug Report

When testing .ts files, they don't appear in the coverage report

To Reproduce

Create a .ts file, test it, run jest --coverage

Expected behavior

Would expect the TS files to be covered by jest --coverage

Link to repl or repo (highly encouraged)

https://github.com/adrienharnay/ts-jest-bug-repro (steps to reproduce in README)

Run npx envinfo --preset jest

Paste the results here:

System:
    OS: macOS High Sierra 10.13.6
    CPU: x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
  Binaries:
    Node: 10.5.0 - /usr/local/bin/node
    Yarn: 1.7.0 - /usr/local/bin/yarn
    npm: 6.1.0 - /usr/local/bin/npm

Thanks a lot in advance!

@flaviusone
Copy link

It looks like if you downgrade ts-jest to v22 it works as expected so this might be a bug in ts-jest.

@adrienharnay
Copy link
Author

I just tested, works well with ts-jest@22.4.6 but breaks with ts-jest@23.0.0. Looking at the changelog, 23.0.0 only upgraded jest to v23: https://github.com/kulshekhar/ts-jest/pull/600/files

So maybe this is still related to Jest? I will open an issue in ts-jest repo as well.

@adrienharnay
Copy link
Author

Fixed with latest jest/ts-jest

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants