-
Notifications
You must be signed in to change notification settings - Fork 3
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
fix: Remove act from selectors #64
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
==========================================
+ Coverage 93.60% 95.18% +1.57%
==========================================
Files 5 6 +1
Lines 266 270 +4
Branches 58 60 +2
==========================================
+ Hits 249 257 +8
+ Misses 17 12 -5
- Partials 0 1 +1 ☔ View full report in Codecov by Sentry. |
scripts/verify-typescript.js
Outdated
// Command-line API does not allow to use tsconfig when compiling only selected files | ||
// https://github.com/microsoft/TypeScript/issues/27379 | ||
execSync( | ||
`tsc --noEmit --strict --experimentalDecorators --target es5 src/converter/test/inputs/converter/*.ts src/converter/test/outputs/converter/*.ts`, | ||
`tsc --noEmit --strict --experimentalDecorators --target es5 ${includedInputFiles.join( |
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.
There is no built-in flag provided by tsc
to easily exclude these files.
scripts/verify-typescript.js
Outdated
// These test files include utils represented as external dependencies to properly test their conversion to selectors. | ||
// We need to skip them here because they are not expected to compile correctly. | ||
const skip = ['strip-external-imports.ts']; |
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.
This change and everything else in this file seems like too much work to work around this issue.
Alternative options
- Can we make that code compile using
paths
ortypeRoots
options from tsconfig. - If fixing the typecheck is hard, can we put them into a separate
converter-no-typecheck
folder (seems easier than writing that much code to skip, right?)
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.
Option 2 looks like a way to go. Updated
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.