-
Notifications
You must be signed in to change notification settings - Fork 30k
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
module: unflag --experimental-strip-types #56350
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
7505688
to
72e089c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #56350 +/- ##
==========================================
- Coverage 88.54% 88.54% -0.01%
==========================================
Files 657 657
Lines 190655 190655
Branches 36582 36587 +5
==========================================
- Hits 168824 168823 -1
- Misses 15008 15017 +9
+ Partials 6823 6815 -8
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The
notable-change
Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
excited for this, having watched it's development and played with it quite a bit.
some suggestions and questions, none blocking
@@ -84,7 +86,7 @@ describe('test runner coverage default exclusion', skipIfNoInspector, () => { | |||
assert.strictEqual(result.status, 0); | |||
}); | |||
|
|||
it('should exclude ts test files when using --experimental-strip-types', async () => { | |||
it('should exclude ts test files', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noting that this suite never positively affirms typescript coverage - perhaps Node.js does not do that yet and I am just mistaken. I could not tell from the source code or API docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since --experimental-strip-types is unflag it will also execute the .test.ts files that are present in the folder. So it will change the output
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's what confused me - the report on line 90 does not change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you look below --experimental-strip-typed was already enabled
@@ -52,7 +52,7 @@ added: v22.6.0 | |||
|
|||
> Stability: 1.1 - Active development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
> Stability: 1.1 - Active development | |
> Stability: 1.2 - Release candidate |
We should also add an entry in this document that says on what version type stripping was enabled by default
It's time to enable it by default to catch some more bugs, currently there are no open issues.
I think it's a semver minor change.
Fixes: nodejs/typescript#17
@nodejs/tsc for visibility
Notable change section:
This change enables the flag
--experimental-strip-types
by default.Node.js will be able to execute TypeScript files without additional configuration. Note that there are some limitations in the supported syntax documented at https://nodejs.org/api/typescript.html#type-stripping
This feature is experimental and is subject to change.