Open rotu opened 1 month ago
hm, that makes sense. is there a way to tell nyc to strip types, or strip them ourselves?
I am very unfamiliar with nyc
but I think adding "*/.d.ts" to the root .nycrc
"exclude" list does the trick.
But I don't know why there are several .nycrc
files scattered throughout the project. Can these be removed?
This is a monorepo and each subpackage has its own config.
Upon running tests,
nyc
is crashing out due to a syntax error.I believe this is because it's mistakenly trying to parse the TypeScript file as Flow. The file
declaredScope.d.ts
contains the below code:debugger trace: