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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
support plugins section from compilerOptions #1916
Comments
However, if you mean Language Service plugins, then it is not possible to do and also not necessary to have.
|
I mean transform plugins, for example https://www.npmjs.com/package/@zerollup/ts-transform-paths Use case: So And it would be great to define them in one place ( |
Ah ha, what you meant is called custom AST transformers, which are already supported. You can check online documentation here https://kulshekhar.github.io/ts-jest/user/config/astTransformers In general, I think from design wise, support custom AST transformers should still stay like it is right now, separately from |
Another option is extending standard However, this will lead to not good in design wise. Since AST transformers impact to how codes are transformed for |
My point is that will be great to keep custom plugins in one place rather then copy&paste them between tsconfig and jest config. But I agree that it is not standard feature and can lead errors in feature. As I understand, ttypescript use items with Any way, thanks for answers, we can close this issue
I found that page, but this setting doesn't work for me, maybe I have old version of ts-jest |
Yes I think The current documentation is showing new config, which was introduced in #1831, that is why it was different comparing to 24.3.0. The setting in 24.3.0 is still working with current version but is deprecated and will be removed in v27. |
can I see online documentation for old versions of ts-jest? upd: |
https://github.com/kulshekhar/ts-jest/blob/v26.1.4/docs/user/config/astTransformers.md You cannot pass option to directly to transformer but you can use |
馃殌 Feature Proposal
If you use ttypescript, you can define
plugins
section in compilerOptionsIt would be great to make it visible in ts-jest
Motivation
do not duplicate plugins in tsconfig.json and jest.config.js
Example
The text was updated successfully, but these errors were encountered: