Skip to content
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

Pass Program to custom transformers in isolatedModules: false #2297

Closed
vladmelnikov opened this issue Jan 25, 2021 · 2 comments · Fixed by #2299
Closed

Pass Program to custom transformers in isolatedModules: false #2297

vladmelnikov opened this issue Jan 25, 2021 · 2 comments · Fixed by #2299
Labels
🚀 Feature Request new suggested feature

Comments

@vladmelnikov
Copy link

I have got issue with this custom ast transformer https://github.com/wessberg/DI-compiler. Could you show me hioow it use with ts-jest (i tried it with another test runner ava and it works great). Thanks in advance.

@ahnpnl
Copy link
Collaborator

ahnpnl commented Jan 25, 2021

I think the problem is because ts-jest doesn't pass Program into that transformer. That transformer requires TypeScript Program to work.

I will convert this into a feature request.

@ahnpnl ahnpnl added 🚀 Feature Request new suggested feature and removed 💬 Question labels Jan 25, 2021
@ahnpnl ahnpnl changed the title Ast transformer help Pass Program to custom transformers in isolatedModules: false Jan 25, 2021
@ahnpnl ahnpnl linked a pull request Jan 25, 2021 that will close this issue
2 tasks
@ahnpnl
Copy link
Collaborator

ahnpnl commented Jan 25, 2021

Close via 387964f

Unfortunately that is a breaking change so it will be available in v27

@ahnpnl ahnpnl closed this as completed Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚀 Feature Request new suggested feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants