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

Code involving generics reported as uncovered #74

Open
kevinbarabash opened this issue Dec 22, 2020 · 2 comments
Open

Code involving generics reported as uncovered #74

kevinbarabash opened this issue Dec 22, 2020 · 2 comments
Labels
question Further information is requested

Comments

@kevinbarabash
Copy link

Version(if relevant): 2.14.5

Environment(if relevant):

  "typeCoverage": {
    "atLeast": 95,
    "detail": true,
    "ignoreCatch": true,
    "project": "tsconfig-coverage.json",
    "strict": true
  }

Code(if relevant):

const map = new Map<number, number>();
for (const [k, v] of map.entries()) {
    console.log(`k = ${k}, v = ${v}`);
}

Expected:

%100 coverage.

Actual:

test-case.ts:2:13: k
test-case.ts:2:16: v
test-case.ts:3:24: k
test-case.ts:3:34: v
@plantain-00
Copy link
Owner

What's your tsconfig-coverage.json, My local test case is good for just:

{
    "files": [
        "test-case.ts"
    ]
}

@plantain-00 plantain-00 added the question Further information is requested label Dec 22, 2020
@kevinbarabash
Copy link
Author

The repo that I'm experiencing this in is using project references. There are other issues with types being shared between sub-projects not being recognized. I'll try to put together a smaller example repo that exhibits these issues.

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

No branches or pull requests

2 participants