-
Notifications
You must be signed in to change notification settings - Fork 22
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
[Question] Compatibility with jest-preset-angular #51
Comments
Hey @dsherret, it appears I'm the only one using this combination of libraries, so I'd like to ask a quick "theoretical" question before I close this. This library adds to the So there's a limitation in So in summary: have you ever managed to get your library working together with other ast transformers, at the same time? |
Based on briefly looking at this, it seems that ts-jest will actually provide its own compiler to the factory function. I didn't find this documentation until now and previously I was looking through the source code to try to figure this out: So it's possible that ts-nameof for jest is using a different version of the compiler. If it were, then the syntax kind values would be different and there would be unexpected errors. I'll have to make some changes to this in order to use that |
@lonix1 Actually, this might not be the issue in this case if it works on its own. I'll open up a separate bug for that later. Have you tried changing the order of the transforms? Does using FWIW, I don't see anything wrong in |
I tried many things, like:
In all cases the jest-angular stuffs works, but nameof fails. But if I use nameof alone it works brilliantly. I think you're right it's a problem with ts-jest. Please don't do anything about this as because you don't use angular, so I don't want you to waste your time. I see there are quite a few angular users besides me, so hopefully one of them will join this issue with some ideas! Should I go ahead and close? |
The compiler never listens to my prayers either 😞 No, it's fine—keep it open. I'll look into it eventually. Also, opened #52. |
Has anyone used this library in a monorepo project with the jest-preset-angular preset, which configures
ts-jest
in a way that conflicts with this library.I tried this which doesn't work (nameof is detected, but then the preset fails and so the tests don't run):
In fact is it even possible to use multiple presets or transformers?
The text was updated successfully, but these errors were encountered: