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

Document sourcemap support for transforms #5113

Closed
SimenB opened this issue Dec 18, 2017 · 7 comments
Closed

Document sourcemap support for transforms #5113

SimenB opened this issue Dec 18, 2017 · 7 comments

Comments

@SimenB
Copy link
Member

SimenB commented Dec 18, 2017

Do you want to request a feature or report a bug?
Docs change.

What is the current behavior?
The added sourcemap support in #3458 is not documented, see http://facebook.github.io/jest/docs/en/configuration.html#transform-object-string-string.

/cc @felipeochoa

If the current behavior is a bug, please provide the steps to reproduce and
either a repl.it demo through https://repl.it/languages/jest or a minimal
repository on GitHub that we can yarn install and yarn test.

N/A

What is the expected behavior?
It might be enough to update e.g. the typescript example, or create a separate example entirely. I had to read the issue description of #3458 to know that I can return {source: '', map: ''}.

Please provide your exact Jest configuration and mention your Jest, node,
yarn/npm version and operating system.

N/A

@ryzokuken
Copy link

ryzokuken commented Feb 5, 2018

I'd like to pick this up as my first contribution to the project. Could anyone guide me with this?

EDIT: @felipeochoa is already working on this. Sorry, I should've noticed.

@SimenB
Copy link
Member Author

SimenB commented Feb 11, 2018

@ryzokuken feel free to PR some details about {code, map} return type of transformers here: https://github.com/facebook/jest/blob/af191108302c719475aa34028a4ed46589b4cb9c/docs/Configuration.md#transform-objectstring-string

@ryzokuken
Copy link

ryzokuken commented Feb 11, 2018 via email

@GeeWee
Copy link

GeeWee commented Jul 3, 2018

We're using the new API in ts-jest if you're looking for an example.

@github-actions
Copy link

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Feb 25, 2022
@SimenB
Copy link
Member Author

SimenB commented Feb 26, 2022

Documented at https://jestjs.io/docs/code-transformation via #10834

@SimenB SimenB closed this as completed Feb 26, 2022
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants