-
Notifications
You must be signed in to change notification settings - Fork 62
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
refactor(module-utils): 24.20x speed-up for generate dts tests #2315
Conversation
May want to validate there are no diagnostics when dom lib is included. Can use skipDefaultLibCheck instead to skip rechecking dom types themselves. |
The majority of the tests does not include anything from output world so they don't need any libs. We have one test with dom libs enabled but now it's specified in the test. |
These tests used to take ~30 sec in CI.... now they take at most 1-2 sec |
Why did the diagnostics change if the types aren't used? I think the Record type is not loaded or something like that. Is the test verifying there are no new diagnostics? |
No...I will check. |
No new errors....most of the tests are also expecting |
The types use the Record type: https://github.com/wix/stylable/blob/master/packages/runtime/src/types.ts#L26 |
|
it does if you use it directly. that's interesting will do more checks |
I will go on the safe side and bring back the |
just noticed that |
the |
use
noLib:true
since we don't use anything from the outside world in the generated.ts
tests