-
Notifications
You must be signed in to change notification settings - Fork 520
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
Add an example using Jest with TypeScript #2135
Comments
I took at stab at having Jest execute the output of ts_library. You can see/clone my repo. |
I managed to get this to fly @vdeantoni . Some prerequisites:
The jest config needed to contain
After this is pretty straight forward, doesn't even need a custom macro.
|
@fredrikredflag that's cool, do you have a suggestion where we could add this to our examples so other ppl can find the solution? |
@alexeagle In order to make easy to find, maybe just add another example called The I could do a PR for it. |
Ideally we'd keep a smallish number of examples so maybe add to the existing Jest one? A PR would be awesome, I don't have time ... |
@fredrikredflag awesome, it worked great! thanks a lot |
I'll try to land an example in the near future now that jestjs/jest#9351 is finalized |
Probably show
tsc
running as a separate action - although there are speed benefits to having a Babel plugin in Jest do the transpilation instead.Related #1761 and #1454
The text was updated successfully, but these errors were encountered: