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.

Invalid version of babel-jest in jest-runtime

See original GitHub issue

Do you want to request a feature or report a bug?

Bug

What is the current behavior?

Incompatible version of babel-jest spcified in jest-runtime.

npm i jest@22 -D

npm ERR! Darwin 15.6.0
npm ERR! argv "/PATH/node/v6.10.3/bin/npm" "install" "jest@22" "-D"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code ETARGET

npm ERR! notarget No compatible version found: babel-jest@^22.2.0
npm ERR! notarget Valid install targets:
npm ERR! notarget 22.1.0, 22.0.6, 22.0.4, etc

npm ERR! notarget It was specified as a dependency of 'jest-runtime'

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.

What is the expected behavior?

Should install a valid version of babel-jest

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

N/a

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:17 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
JakeSidSmithcommented, Feb 8, 2018

Really not sure what’s going on. Tried clearing npm cache, DNS cache, restarting Mac, restarting router, checking that I was hitting the same IP as my colleagues, made sure there was nothing in my hosts that could be messing with it, uninstalled and reinstalled npm. Today I am on the same network as people that it was working for and npm info babel-jest still shows the latest version as 22.2.0.

1reaction
JakeSidSmithcommented, Feb 7, 2018

I can now see 22.2.0, but not 22.2.1. At least I can install jest now. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jest testing ( using babel ) invalid token import - Stack Overflow
Jest testing ( using babel ) invalid token import ... I am using @babel/core and @babel/preset-env and babel-jest. package.json
Read more >
babel-jest - Awesome JS
[jest-runtime] Support WebAssembly (Wasm) imports in ESM modules (#13505) ... [@jest/transform] Throw better error if an invalid return value if encountered ...
Read more >
Code Transformation - Jest
Jest will cache the result of a transformation and attempt to invalidate that result based on a number of factors, such as the...
Read more >
How I Fixed The Unexpected Token Error In Jest
Tagged with javascript, jest, testing, jsx. ... Jest, I'm testing my own little batch of code in my own self-preserved runtime environment.
Read more >
ts-jest - npm
A Jest transformer with source map support that lets you use Jest to test projects written in TypeScript. Latest version: 29.0.3, ...
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