Closed spaul1042 closed 1 year ago
The result in files start with ..
will be ignored, to fix #42 : https://github.com/plantain-00/type-coverage/blob/7aa9475f7ef8c3b15f994a7b4bd88496f919ceed/packages/core/src/core.ts#L43-L45
I want to run type-coverage commands from script file of a directory named type-coverage
present in the script
directory. and script folder is there in the root of the project. do you suggest something that I can do?
The result in files start with
..
will be ignored, to fix #42 :
Maybe your script can be like something cd .. && type-coverage -p ./src
My issue got resolved, I had to change my cwd in the script file. But please look into this that the command not working when I cd into a particular package of the packages directory , and then run type-coverage -p .
Even this yielding a different answer.
v2.26.0
add --not-only-in-cwd
to disable this behavior.
Okay thanks!
Hi, I have a doubt regarding type-coverage library. I have been using the type-coverage library for one of my projects since last one week and I really appreciate the potential it holds.
But There is a constant error I get , when I run the type-coverage -p command on a few of my packages. The command works fine for the rest of my packages. the error is : FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
I am mentioning the entire error below here. Can you please tell me what's the issue here?
<--- Last few GCs --->
[16383:0x150008000] 73608 ms: Mark-Compact 4034.5 (4131.1) -> 4019.9 (4132.6) MB, 869.79 / 0.00 ms (average mu = 0.118, current mu = 0.043) allocation failure; scavenge might not succeed [16383:0x150008000] 74686 ms: Mark-Compact 4036.0 (4132.6) -> 4021.4 (4134.1) MB, 1045.12 / 0.00 ms (average mu = 0.072, current mu = 0.030) allocation failure; scavenge might not succeed
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed -
JavaScript heap out of memory
1: 0x100710308 node::Abort() [/opt/homebrew/Cellar/node/20.1.0/bin/node]
2: 0x100711814
node::ModifyCodeGenerationFromStrings(v8::Local
On Wed, May 24, 2023 at 12:28 PM York Yao @.***> wrote:
v2.26.0 add --not-only-in-cwd to disable this behavior.
— Reply to this email directly, view it on GitHub https://github.com/plantain-00/type-coverage/issues/123#issuecomment-1560554917, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASF7BA3IB67JZLTIVWYE2X3XHWWPXANCNFSM6AAAAAAYLJ6DPU . You are receiving this because you modified the open/close state.Message ID: @.***>
Version(if relevant): 1.0.0
Environment(if relevant):
Vs code , React Typescript based project
Code(if relevant):
Expected:
I have a packages folder where there are different packages whose type-coverage rate I want to calculate. There is a package named "board" and another package named "proto".
I am testing the type-coverage commands on these two terminals. In Terminal 1 , I am in >> src/packages/ In Terminal 2 , I am in >> src/packages/proto
Command I run on Terminal 1 : type-coverage -p board Command I run on Terminal 2 : type-coverage -p ../board
I must get the same type coverage rate in bot the terminals.
Actual:
On Terminal 1 I get >> 396027/40714, 97.27 % On Terminal 2 I get >> 608/662. 91.84 %
Am I missing something here as the type-coverage command is installed globally.