Jest: Jest did not exit one second after the test run has completed.

Created on 12 Mar 2019  路  4Comments  路  Source: facebook/jest

馃悰 Bug Report

I've updated jest to the latest version because of the bug with NodeJS version 11.11.0. All tests do success but it prompts the following message:
"Jest did not exit one second after the test run has completed"

To Reproduce

Steps to reproduce the behavior:

  1. install the latest version of jest

Expected behavior

Tests should work as before.

Link to repl or repo (highly encouraged)

https://github.com/ethereum/web3.js

System:
    OS: macOS 10.14.3
Binaries:
    Node: 11.11.0 - ~/.nvm/versions/node/v11.11.0/bin/node
    Yarn: 1.12.1 - /usr/local/bin/yarn
    npm: 6.9.0 - ~/.nvm/versions/node/v11.11.0/bin/npm
npmPackages:
    jest: ^24.4.0 => 24.4.0
Bug

Most helpful comment

@SimenB thanks to this issue lol it wasted my whole day later to realise notify:true on jest config was culprit lol :(

All 4 comments

The issue is tied to node-notifier bug in 5.4 version :- https://github.com/mikaelbr/node-notifier/pull/271

There is already a jest bug similar to it - https://github.com/facebook/jest/issues/7890

Duplicate of #8036

@SimenB thanks to this issue lol it wasted my whole day later to realise notify:true on jest config was culprit lol :(

@shirshak55 Thanks for this. I thought I was going nuts. I had done every cleanup possible.

Was this page helpful?
0 / 5 - 0 ratings