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

No function coverage for named exports in barrel file #959

Open
superdyzio opened this issue Oct 11, 2023 · 0 comments
Open

No function coverage for named exports in barrel file #959

superdyzio opened this issue Oct 11, 2023 · 0 comments

Comments

@superdyzio
Copy link

Hello! I have a Nx project with Angular, one app, multiple libs, each of them has barrel file with exports - index.ts.

Some exports in those file goes like that export * from 'whatever', but there are also multiple named like export { Something } from 'whatever'. I have perfect coverage report for all of them but one.

In one of my libs, main barrel file of the lib gets 100% of statement coverage, but 0% of coverage in terms of functions on all my named exports. I cannot figure out why coverage works for named exports in other barrel files but in this particular one.

I made sure that things exported in uncovered lines are used in multiple places of both given lib and in app, they are also used in tests in both lib and app - all of these tests pass and have proper coverage.

Screen of coverage report (you can notice "8x" in terms of lines and red marking in terms of functions):
image

My env:
[email protected]
[email protected]
[email protected]
nrwl/[email protected]
[email protected]

Anyone knows how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant