You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now ast transformers only take in a path to the transformer factory but not further options. Our transformer has a lot of options but we have no idea how to pass those in other than creating a wrapper
At the moment, ts-jest only cares about the factory function which is passed in by users, see https://github.com/kulshekhar/ts-jest/blob/master/src/config/config-set.ts#L440 . When user defines the transformer path, ts-jest simply performs require on the path and then call factory. It doesn’t know anything about the context inside factory.
I think it is not possible now to have a feature like you request. Do you see other ways to apply your feature request by looking at the current codes ?
longlho
added a commit
to longlho/ts-jest
that referenced
this issue
Sep 12, 2020
🚀 Feature Proposal
Right now ast transformers only take in a path to the transformer factory but not further options. Our transformer has a lot of options but we have no idea how to pass those in other than creating a wrapper
Motivation
Example
The text was updated successfully, but these errors were encountered: