question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Avoid magic (babel unclear requirement)

See original GitHub issue

🐛 Bug Report

Currently jest (23.6.0) fails if @babel/core or babel-core or babel-jest are not installed. This just happens if any other dependency in my app installed any @babel/xxxx or babel-xxxx package in node_modules/.

My app uses ES6 (const, class, etc) but it does not use import/export so I see no reason for jest to require babel at all (I’m running it in Node >= 8).

Magic is not good. My app (dev) dependencies should not depend on whether other deps install babel stuff in my node_modules. I shouldn’t have to install babel stuff within my devDependencies to just run jest.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rickhanloniicommented, Dec 7, 2018

We use babel internally for things like hoisting jest.mock to the top of files for you

0reactions
github-actions[bot]commented, May 12, 2021

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Avoid fontspec warning with babel - LaTeX Stack Exchange
So when Algerian Arabic is the language in use, babel will load Amiri with arab.ARA script and language. This exists in the font, ......
Read more >
Is it okay to use babel-node in production - Stack Overflow
For the server side code, I would just do a regular build using babel-cli ... All subsequent files required by node with the...
Read more >
Open Babel Documentation - Read the Docs
Multiple programs are often required in realistic workflows. ... to be enclosed in double quotes to avoid confusing the shell or operating.
Read more >
draft-ovsienko-babel-hmac-authentication-08 - IETF Datatracker
Internet-Draft Babel HMAC Cryptographic Authentication March 2014 For example, the following hash algorithms meet these requirements at the time of this ...
Read more >
Modern IDEs are magic. Why are so many coders still using ...
“The reason I avoided IDEs to begin with was that back when I was ... become 'confused' and give bad feedback on its...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found