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

Jest does not exit when some tests fails and when using --notify option #5856

Closed
jbdemonte opened this issue Mar 22, 2018 · 4 comments
Closed

Comments

@jbdemonte
Copy link
Contributor

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

Bug

What is the current behavior?

--notify option hold the test suites end and does not let the test suites exit when an error occurs unlike when it succeeds.

image

image

To reproduce.

describe('Test', () => {
  it('will fails', () => {
    expect(1).toEqual(2);
  });
});

run jest --notify

What is the expected behavior?

It should notify the error and let the test suites exit as when test suites succeeds.
Currently, we have to either click on the "system notification" or ^C in the cli.

Please provide your exact Jest configuration

None

Run npx envinfo --preset jest in your project directory and paste the
results here

npx: installed 1 in 2.912s

  System:
    OS: macOS High Sierra 10.13.3
    CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
  Binaries:
    Node: 8.9.3
    Yarn: 1.5.1
    npm: 5.7.1
  npmPackages:
    jest:
      wanted: ^22.4.3
      installed: 22.4.3
@ranyitz
Copy link
Contributor

ranyitz commented Mar 23, 2018

Hey, I've created a PR #5861 that aligns the notify reporter behavior to not wait for a user action.

@thymikee
Copy link
Collaborator

Closed via #5861

@Frondor
Copy link

Frondor commented Oct 13, 2018

This is not fixed for jest "^23.6.0"

@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 May 12, 2021
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

5 participants