Code Monkey home page Code Monkey logo

Comments (11)

Aaron2Ti avatar Aaron2Ti commented on June 30, 2024 5

+1 for this

from ts-jest.

alexjoverm avatar alexjoverm commented on June 30, 2024 3

Guys, not sure if is related but I'm a bit confused:

  • I only get the remapped folder when I'm in watch mode. But, in that case the coverage gets crazy and it gets lowered a lot
  • It works better just by running "jest --no-cache --coverage", but still the coverage is not correct. It gives me statements and branches not covered (even in comments), and they are.

Coverage: https://coveralls.io/github/coosto/ShortcutJS
Tests: https://github.com/coosto/ShortcutJS/tree/master/test

Wanted to open an issue but I think this one is related. Any known workaround in the meanwhile?

from ts-jest.

kwonoj avatar kwonoj commented on June 30, 2024 2

I have to admit current coverage ergonomics causes confusions between what to trust / what to not to trust, and also what is not possible.

  1. Console / terminal output summary
    : @kulshekhar is correct, it is known issue and cannot have workaround at the moment. refer attached issue comment for detail. (#42 (comment)) It may need some documentation / instruction for this.

  2. What coverage report is accurate?
    coverage/remapped is one you need look into. reports directly under coverage is original one created via jest, and remapped is actual coverage postprocessed by jest. I've made those orgnization without give much caution by I was too familiar jest generated reports under coverage, and it makes sense to preserve original for anyone need to take look into those. probably remove orignal coverage or support #61 might have less confusion.

from ts-jest.

kulshekhar avatar kulshekhar commented on June 30, 2024

would it be possible for you to create a minimal repo that reproduces this issue?

from ts-jest.

tyleralves avatar tyleralves commented on June 30, 2024

Yep, here it is:
https://github.com/tyleralves/tsJestExample

from ts-jest.

kulshekhar avatar kulshekhar commented on June 30, 2024

thanks @tyleralves

I'll try to take a look at this as soon as I find some time!

from ts-jest.

kulshekhar avatar kulshekhar commented on June 30, 2024

@tyleralves I was trying this out now and just noticed the edited part of the original issue. I think this is a known issue.

Note that I haven't worked on the coverage part I'm not too familiar with it. I hope @kwonoj can confirm/refute this

from ts-jest.

kwonoj avatar kwonoj commented on June 30, 2024

#101 is related as well related to console summary.

from ts-jest.

kulshekhar avatar kulshekhar commented on June 30, 2024

Closing in favor of #101

from ts-jest.

alexander-elgin avatar alexander-elgin commented on June 30, 2024

The --no-cache option works for me

from ts-jest.

alishehzad2017 avatar alishehzad2017 commented on June 30, 2024

I do not have the remapped folder inside coverage.

How can I get an accurate/remapped coverage report?

from ts-jest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.