-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
feat: support signal input from angular 17.1 #8818
base: master
Are you sure you want to change the base?
Conversation
@satanTime the CI will probably not work "as is", and I'm not sure how to solve this nicely. We need to run a "pre-build-step" to downgrade angularJitApplicationTransform to cjs instead of esm. I'm guessing we need to update all test / build-steps in the scripts of package.json? |
c40996f
to
866af7e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #8818 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 227 227
Lines 4935 4925 -10
Branches 1147 1142 -5
=========================================
- Hits 4935 4925 -10 ☔ View full report in Codecov by Sentry. |
2c78953
to
d49e2a0
Compare
Adds a custom transformer to transform Angular Code, specifically, signals (input, query and models) to behave better in jit-environment. Solves help-me-mom#7976 Signed-off-by: André Andersson <[email protected]>
Removes some dead code for collecting parameters. Angular jit application transform downlevels constructors and associated Angular decorators. Signed-off-by: André Andersson <[email protected]>
d49e2a0
to
9f9188e
Compare
This is handled by Angulars JIT Application Transform. Signed-off-by: André Andersson <[email protected]>
e624cdb
to
e519230
Compare
This is finally ready for review |
Thank you, I'll take a look during the next days. |
Could you explain the changes when you have time? |
Sure, though I'm not really sure I understand the changes myself to a full extend I'll do my best. The most important part is running Since @angular/core is an esm-module we need to convert it to CommonJS to be able to build it for ng-mocks, hence why we're not simply importing it from @angular/core directly but rather use esbuild to convert it in a post-install step. I'm very open to other suggestions here, since this is probably the thing I dislike most about the current solution. Since the transforming does other things I was able to remove some more code. Mainly The usage of The solution is quite inspired from jest-preset-angular: thymikee/jest-preset-angular#2303 Let me know if you want to talk to me somewhere else regarding these changes. I'll try to update the commit messages with this information as well. |
@satanTime Are there any updates about this pull request? The amount of |
How tf this PR isn't merged yet ? We kinda need this to use your package with angular 17-18 |
Hello, seems we need this in my team projects. Any news ? |
Adds a custom transformer to transform Angular Code, specifically, signals (input, query and models) to behave better in jit-environment.
Solves #7976