-
Notifications
You must be signed in to change notification settings - Fork 309
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
The configuration for astTransformers as string[] is deprecated and will be removed in ts-jest 27 #439
Comments
This warning is due to change in globals: {
'ts-jest': {
// ...
astTransformers: {
before: [
'jest-preset-angular/build/InlineFilesTransformer',
'jest-preset-angular/build/StripStylesTransformer',
],
},
},
}, We should change documentation in this repo. |
Yes it is a change in PR is welcome :) |
not sure what version worked with proposed solution, but on v26.4.0 this change to object proposed by @mmeylan throws:
|
if you install 8.3.1, it should fix the issue. |
Note the link in the console when running tests, and the link in this thread above, leads to a "Not Found". |
Note that starting from v9 of |
@mmeylan are those transformers still available from some other library/package, because I feel that due to them being removed, now snapshots contain much more information, that might not be useful. Not sure about it at the same time. I did read, that
|
@jeserkin why do you need those old AST transformers? The AST transformers from Angular do the same job as the old ones. AST transformers modify input TS to produce a different JS output. Snapshot is a different thing. Snapshot is related to Jest snapshot serializers which isn't changed at all. We only changed the snapshot serializer paths. |
@ahnpnl Interesting. For some reason with update to Angular 13 and all related libraries snapshots have changed. E.g.:
It is entirely possible, that it is not related to those transformers, just felt based on the names, that might be. Or:
|
🐛 Bug Report
envinfo
The text was updated successfully, but these errors were encountered: