Closed JounQin closed 2 years ago
My config
{
"typeCoverage": {
"atLeast": 98.52,
"cache": true,
"detail": true,
"ignoreAsAssertion": true,
"ignoreNested": true,
"ignoreNonNullAssertion": true,
"showRelativePath": true,
"strict": true,
"update": true
}
}
Still not producible:tsc
doesn't work: error TS2307: Cannot find module 'shared' or its corresponding type declarations.
$ tsc -p src
✨ Done in 1.85s.
$ type-coverage -p src
83 / 83 100.00%
type-coverage success.
Wired again, can you provide an email so that I can send you the whole internal project for reproduction?
@JounQin Did you find a solution to that? I seem to have a similar issue, which is even more important on AWS CodeBuild
@plantain-00 I made a runnable reproduction at https://github.com/rx-ts/react-app-boilerplate, you can run pnpm i && pnpm typecov
to reproduce.
v2.21.1 should fix this.
@plantain-00 Thanks for fixing this!
Although there is a last exception:
server/middlewares/mock.ts:101:21: body
I'm not sure why body
is not type covered(I've enabled ignoreAsAssertion
option).
req.body
is any
, ignoreAsAssertion
ignores req.body as T
req.body
isany
,ignoreAsAssertion
ignoresreq.body as T
@plantain-00 Then what does the output server/middlewares/mock.ts:101:21: body
mean? How can I fix it?
It means body
(from file server/middlewares/mock.ts
at row 101 column 21
) is any
, it comes from express
, fix it by improving @types/express
Version(if relevant): 2.18.2
Environment(if relevant):
Code(if relevant):
Expected:
No report
Actual:
Most of these symbols are well typed...