Comments (11)
+1 for this
from ts-jest.
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.
I have to admit current coverage ergonomics causes confusions between what to trust / what to not to trust, and also what is not possible.
-
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. -
What coverage report is accurate?
coverage/remapped
is one you need look into. reports directly undercoverage
is original one created via jest, andremapped
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.
would it be possible for you to create a minimal repo that reproduces this issue?
from ts-jest.
Yep, here it is:
https://github.com/tyleralves/tsJestExample
from ts-jest.
thanks @tyleralves
I'll try to take a look at this as soon as I find some time!
from ts-jest.
@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.
#101 is related as well related to console summary.
from ts-jest.
Closing in favor of #101
from ts-jest.
The --no-cache
option works for me
from ts-jest.
I do not have the remapped folder inside coverage.
How can I get an accurate/remapped coverage report?
from ts-jest.
Related Issues (20)
- [Bug]: Cannot find module '@jest/globals' when cache: false HOT 1
- [Bug]: TS 5.2+ fails if using `nodenext` module resolution and `noEmitOnError` is `true` HOT 2
- [Bug]: TsJestTransformerOptions throw type error
- [Bug]: ESM syntax is not allowed in a CommonJS HOT 1
- [Bug]: Produced source maps seem to have mismatch with file paths
- [Bug]: "Decorator arguments must be moved inside parentheses:.." HOT 3
- class-transformer doesn't convert plain json to object
- [Bug]: types not found when filename has certain words in it
- [Bug]: wrong RegExp explanations in docs HOT 1
- [Bug]: Should Not Show Warning About `esModuleInterop` If `module` is `node16` or `nodenext`
- Jest encountered an unexpected token HOT 3
- Preset react-native not found. HOT 1
- [Docs]: clarify the name of the config file
- [Bug]: jest.mock calls are not hoisted in CommonJS test suites
- [Docs]: Include a GitHub repo with a minimal working demo HOT 2
- [Feature]: allow to customize JEST_GLOBALS_MODULE_NAME HOT 2
- [Bug]: Huge performance drop when "allowJs": true is enabled in tsconfig HOT 3
- [Bug]: Could not resolve dependency:peer jest@"^29.0.0" from ts-jest@^29.1.1 HOT 1
- Explicit Resource Management is not supported HOT 6
- [Security] Lodash vulnerability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ts-jest.