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.

Jest "Watch Usage" actions are mapping incorrectly.

See original GitHub issue

🐛 Bug Report

jest-cli-issue

To Reproduce

Steps to reproduce the behavior:

  1. press f to run all failing tests first. You should get “Unexpected Behavior Image 2”
  2. Now press a to run all tests. You should get “Unexpected Behavior Image 1”

Expected behavior

  • f should always map “to only run failed tests.”
  • a should always map “to run all tests.”

Run npx envinfo --preset jest

Paste the results here:

  System:
    OS: macOS High Sierra 10.13.4
    CPU: x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
  Binaries:
    Node: 8.9.3 - ~/.nvm/versions/node/v8.9.3/bin/node
    Yarn: 1.5.1 - /usr/local/bin/yarn
    npm: 5.6.0 - ~/.nvm/versions/node/v8.9.3/bin/npm
  npmPackages:
    @types/jest: 22.2.2 => 22.2.2
    jest: 22.4.3 => 22.4.3

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
lgandeckicommented, May 14, 2018

Fixed in the #6182 pr 😃 Just got the CI to pass.

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

Configuring Jest
The file will be discovered automatically, if it is named jest.config.js|ts|mjs|cjs|json . You can use --config flag to pass an explicit path to...
Read more >
Jest Testing like a Pro - Tips and tricks
If the methods you want to test are asynchronous, be it callbacks, promises or async, it is not a problem with Jest. The...
Read more >
Testing React Applications with Jest - Auth0
Learn how to test React applications with the Jest JavaScript testing framework. ... For this use the npm test -- --watch command.
Read more >
ts-jest - npm
A Jest transformer with source map support that lets you use Jest to test ... vulnerabilities Coverage status GitHub actions GitHub license.
Read more >
babel-jest | Yarn - Package Manager
Usage. If you are already using jest-cli , add babel-jest and it will automatically compile JavaScript code using Babel. yarn add --dev babel-jest...
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