Skip to content
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

Merged
merged 3 commits into from
Aug 1, 2024
Merged

Conversation

georgylobko
Copy link
Contributor

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.

Copy link

codecov bot commented Jul 31, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 95.18%. Comparing base (c19106e) to head (da62bff).

Files Patch % Lines
src/core/utils-dom.ts 0.00% 0 Missing and 1 partial ⚠️
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.
📢 Have feedback on the report? Share it here.

// 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(
Copy link
Contributor Author

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.

@georgylobko georgylobko marked this pull request as ready for review July 31, 2024 14:17
@georgylobko georgylobko requested a review from a team as a code owner July 31, 2024 14:17
@georgylobko georgylobko requested review from avinashbot and just-boris and removed request for a team July 31, 2024 14:17
Comment on lines 12 to 14
// 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'];
Copy link
Member

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

  1. Can we make that code compile using paths or typeRoots options from tsconfig.
  2. 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?)

Copy link
Contributor Author

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

@georgylobko georgylobko merged commit 574619a into main Aug 1, 2024
29 of 30 checks passed
@georgylobko georgylobko deleted the fix/remove-act-from-selectors branch August 1, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants