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

Update babel-jest example #2540

Merged
merged 3 commits into from
Jul 30, 2021
Merged

Update babel-jest example #2540

merged 3 commits into from
Jul 30, 2021

Conversation

nicolo-ribaudo
Copy link
Member

Ref: jestjs/jest#11444

@SimenB Btw, babel-jest could add export { createTransformer } (other than the default export) to avoid the need of .default when used from CommonJS or native ESM.

@SimenB
Copy link
Contributor

SimenB commented May 25, 2021

Yep, I do think we'll re-add it as it's sorta wonky

docs/config-files.md Outdated Show resolved Hide resolved
@SimenB
Copy link
Contributor

SimenB commented May 25, 2021

You can also provide this in Jest's config, that might be better than using createTransformer directly?

{
  "transform": [".*js", {"rootMode": "upward"}]
}

(don't copy this snippet without verifying, written from memory)

@netlify
Copy link

netlify bot commented May 25, 2021

✔️ Deploy Preview for babel ready!

🔨 Explore the source changes: 1b2931d

🔍 Inspect the deploy log: https://app.netlify.com/sites/babel/deploys/60d0a982ce1f78000795c346

😎 Browse the preview: https://deploy-preview-2540--babel.netlify.app

Co-authored-by: Simen Bekkhus <sbekkhus91@gmail.com>
docs/config-files.md Outdated Show resolved Hide resolved
@JLHwung JLHwung merged commit 7124917 into main Jul 30, 2021
@JLHwung JLHwung deleted the nicolo-ribaudo-patch-1 branch July 30, 2021 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants